Modifier and Type | Field and Description |
---|---|
static Animation |
Animation.BLANK
A blank Animation with Sprite.BLANK, duration 0, as its only frame.
|
Modifier and Type | Method and Description |
---|---|
Animation |
AnimationInstance.getAnimation()
Returns the Animation that this AnimationInstance is an instance of.
|
Animation |
CellGameState.getAnimation(int id)
Returns the Animation of the AnimationInstance assigned to this
CellGameState with the specified ID, if there is one.
|
static Animation |
Assets.getAnimation(java.lang.String name)
Returns the Animation in the list of Animations under the specified name,
or null if there is none.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Assets.add(java.lang.String name,
Animation animation)
Adds the specified Animation to the list of Animations under the
specified name.
|
AnimationInstance |
CellGameState.addAnimInstance(Animation animation)
Adds a new AnimationInstance of the specified Animation to this
CellGameState.
|
AnimationInstance |
CellGameState.setAnimation(int id,
Animation animation)
Sets the AnimationInstance that is assigned to this CellGameState with
the specified ID to a new AnimationInstance of the specified Animation,
if there is not already an AnimationInstance of that Animation assigned
with that ID.
|
Constructor and Description |
---|
AnimationInstance(Animation animation)
Creates a new AnimationInstance of the specified Animation.
|