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.
|
AnimationInstance |
AnimationInstance.setGameState(CellGameState state)
Sets the CellGameState to which this AnimationInstance is assigned.
|
AnimationInstance |
AnimationInstance.setIndex(int index)
Sets this AnimationInstance's index at its highest level to the specified
value.
|
AnimationInstance |
AnimationInstance.setIndex(int level,
int index)
Sets this AnimationInstance's index at the specified level to the
specified value.
|
AnimationInstance |
AnimationInstance.setIndex(int level,
int index,
boolean resetLowerIndices)
Sets this AnimationInstance's index at the specified level to the
specified value.
|
AnimationInstance |
AnimationInstance.setSpeed(int level,
long speed)
Sets this AnimationInstance's speed at the specified level to the
specified value.
|
AnimationInstance |
AnimationInstance.setSpeed(long speed)
Sets this AnimationInstance's speed at its highest level to the specified
value.
|
AnimationInstance |
AnimationInstance.setTimeFactor(long timeFactor)
Sets this AnimationInstance's time factor to the specified value.
|
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()
Returns the AnimationInstance that is assigned to this SpaceObject with
ID 0, or AnimationInstance.BLANK if there is none.
|
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 this SpaceObject's 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, then sets this
SpaceObject's appearance to its AnimationInstance 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.
|