public class AnimationComponent
extends java.lang.Object
implements com.badlogic.ashley.core.Component, com.badlogic.gdx.utils.Pool.Poolable
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.utils.ArrayMap<java.lang.String,com.badlogic.gdx.graphics.g2d.Animation> |
animations |
boolean |
isPaused |
| Constructor and Description |
|---|
AnimationComponent() |
| Modifier and Type | Method and Description |
|---|---|
AnimationComponent |
addAnimation(java.lang.String stateName,
com.badlogic.gdx.graphics.g2d.Animation animation) |
static AnimationComponent |
create(com.badlogic.ashley.core.Engine engine) |
void |
reset() |
AnimationComponent |
setPaused(boolean isPaused) |
public com.badlogic.gdx.utils.ArrayMap<java.lang.String,com.badlogic.gdx.graphics.g2d.Animation> animations
public boolean isPaused
public static AnimationComponent create(com.badlogic.ashley.core.Engine engine)
public AnimationComponent addAnimation(java.lang.String stateName, com.badlogic.gdx.graphics.g2d.Animation animation)
public AnimationComponent setPaused(boolean isPaused)
public void reset()
reset in interface com.badlogic.gdx.utils.Pool.Poolable