public class FollowerComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
float |
baseRotation |
FollowMode |
followMode |
com.badlogic.gdx.math.Vector2 |
offset |
boolean |
shouldMatchOpacity |
com.badlogic.ashley.core.Entity |
target |
| Constructor and Description |
|---|
FollowerComponent() |
| Modifier and Type | Method and Description |
|---|---|
static FollowerComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
FollowerComponent |
setBaseRotation(float rot) |
FollowerComponent |
setMatchOpacity(boolean shouldMatch) |
FollowerComponent |
setMode(FollowMode mode) |
FollowerComponent |
setOffset(float x,
float y) |
FollowerComponent |
setTarget(com.badlogic.ashley.core.Entity e) |
public com.badlogic.ashley.core.Entity target
public com.badlogic.gdx.math.Vector2 offset
public float baseRotation
public boolean shouldMatchOpacity
public FollowMode followMode
public static FollowerComponent create(com.badlogic.ashley.core.Engine engine)
public FollowerComponent setTarget(com.badlogic.ashley.core.Entity e)
public FollowerComponent setOffset(float x, float y)
public FollowerComponent setMode(FollowMode mode)
public FollowerComponent setBaseRotation(float rot)
public FollowerComponent setMatchOpacity(boolean shouldMatch)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable