Package | Description |
---|---|
cell2d | |
cell2d.space |
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.
|
Modifier and Type | Method and Description |
---|---|
Animation |
SpaceObject.getAnimation()
Returns the Animation of the AnimationInstance assigned to this
SpaceObject with ID 0, or Animation.BLANK if there is none.
|
Animation |
SpaceObject.getAnimation(int id)
Returns the Animation of the AnimationInstance assigned to this
SpaceObject with the specified ID, or Animation.BLANK if there is none.
|
Modifier and Type | Method and Description |
---|---|
AnimationInstance |
SpaceObject.setAnimation(Animation animation)
Sets both this SpaceObject's appearance and its AnimationInstance with ID
0 to a new AnimationInstance of the specified Animation, if there is not
already an AnimationInstance of that Animation assigned with ID 0.
|
AnimationInstance |
SpaceObject.setAnimation(int id,
Animation animation)
Sets the AnimationInstance that is assigned to this SpaceObject 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.
|