public class ScreenWrapComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
boolean |
isReversed |
float |
maxPos |
float |
minPos |
ScreenWrapMode |
mode |
com.badlogic.gdx.utils.Array<? extends com.badlogic.gdx.graphics.g2d.TextureRegion> |
possibleRegions |
boolean |
shouldRandomizePerpendicularPosition |
boolean |
shouldRandomizeTexture |
float |
wrapOffset |
| Constructor and Description |
|---|
ScreenWrapComponent() |
| Modifier and Type | Method and Description |
|---|---|
static ScreenWrapComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
ScreenWrapComponent |
setMinMaxPos(float min,
float max) |
ScreenWrapComponent |
setMode(ScreenWrapMode newMode) |
ScreenWrapComponent |
setPossibleRegions(com.badlogic.gdx.utils.Array<? extends com.badlogic.gdx.graphics.g2d.TextureRegion> regions) |
ScreenWrapComponent |
setRandomizeTexture(boolean shouldShapeShift) |
ScreenWrapComponent |
setReversed(boolean isReversed) |
ScreenWrapComponent |
setWrapOffset(float offset) |
ScreenWrapComponent |
shouldRandomPerpendicularPosition(boolean shouldReset) |
public ScreenWrapMode mode
public boolean shouldRandomizePerpendicularPosition
public boolean shouldRandomizeTexture
public boolean isReversed
public float wrapOffset
public float minPos
public float maxPos
public com.badlogic.gdx.utils.Array<? extends com.badlogic.gdx.graphics.g2d.TextureRegion> possibleRegions
public static ScreenWrapComponent create(com.badlogic.ashley.core.Engine engine)
public ScreenWrapComponent setMode(ScreenWrapMode newMode)
public ScreenWrapComponent shouldRandomPerpendicularPosition(boolean shouldReset)
public ScreenWrapComponent setRandomizeTexture(boolean shouldShapeShift)
public ScreenWrapComponent setPossibleRegions(com.badlogic.gdx.utils.Array<? extends com.badlogic.gdx.graphics.g2d.TextureRegion> regions)
public ScreenWrapComponent setReversed(boolean isReversed)
public ScreenWrapComponent setWrapOffset(float offset)
public ScreenWrapComponent setMinMaxPos(float min, float max)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable