Package | Description |
---|---|
cell2d | |
cell2d.space |
Modifier and Type | Field and Description |
---|---|
static AnimationInstance |
AnimationInstance.BLANK
A blank AnimationInstance of Animation.BLANK.
|
Modifier and Type | Method and Description |
---|---|
AnimationInstance |
CellGameState.addAnimInstance(Animation animation)
Adds a new AnimationInstance of the specified Animation to this
CellGameState.
|
AnimationInstance |
CellGameState.getAnimInstance(int id)
Returns the AnimationInstance that is assigned to this CellGameState with
the specified ID.
|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CellGameState.addAnimInstance(AnimationInstance instance)
Adds the specified AnimationInstance to this CellGameState if it is not
already assigned to a CellGameState.
|
boolean |
CellGameState.removeAnimInstance(AnimationInstance instance)
Removes the specified AnimationInstance from this CellGameState if it
is currently assigned to this CellGameState.
|
boolean |
CellGameState.setAnimInstance(int id,
AnimationInstance instance)
Sets the AnimationInstance that is assigned to this CellGameState with
the specified ID to the specified AnimationInstance, if it is not already
assigned to a CellGameState.
|
Modifier and Type | Method and Description |
---|---|
AnimationInstance |
SpaceObject.getAnimInstance(int id)
Returns the AnimationInstance that is assigned to this SpaceObject with
the specified ID, or AnimationInstance.BLANK if there is none.
|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SpaceObject.setAnimInstance(AnimationInstance instance)
Sets both this SpaceObject's appearance and its AnimationInstance with ID
0 to the specified AnimationInstance, if it is not already assigned to a
CellGameState.
|
boolean |
SpaceObject.setAnimInstance(int id,
AnimationInstance instance)
Sets the AnimationInstance that is assigned to this SpaceObject with the
specified ID to the specified AnimationInstance, if it is not already
assigned to a CellGameState.
|