Package | Description |
---|---|
cell2d | |
cell2d.space |
Modifier and Type | Class and Description |
---|---|
class |
CellGameState<T extends CellGame,U extends CellGameState<T,U,V>,V extends Thinker<T,U,V>>
A CellGameState represents one state that a CellGame can be in, such as
the main menu, the options menu, in the middle of a level, etc.
|
class |
Thinker<T extends CellGame,U extends CellGameState<T,U,V>,V extends Thinker<T,U,V>>
A Thinker is a collection of methods that contributes to the mechanics of
the CellGameState to which it is assigned.
|
class |
ThinkerGroup<T extends CellGame,U extends CellGameState<T,U,V>,V extends Thinker<T,U,V>>
A ThinkerGroup is a group of Thinkers that can be iterated over.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicGameState<T extends CellGame>
A BasicGameState is a type of CellGameState that uses BasicThinkers, which
have no special capabilities.
|
Modifier and Type | Method and Description |
---|---|
CellGameState |
CellGame.getCurrentState()
Returns the CellGameState that this CellGame is currently in - in other
words, this CellGame's only active CellGameState.
|
CellGameState |
AnimationInstance.getGameState()
Returns the CellGameState to which this AnimationInstance is assigned, or
null if it is not assigned to one.
|
CellGameState |
CellGame.getState(int id)
Returns this CellGame's CellGameState with the specified ID, or null if
there is none.
|
Modifier and Type | Method and Description |
---|---|
void |
AnimationInstance.setGameState(CellGameState state)
Sets the CellGameState to which this AnimationInstance is assigned.
|
Modifier and Type | Class and Description |
---|---|
class |
SpaceState<T extends CellGame>
A SpaceState is a CellGameState that handles gameplay in a continuous
two-dimensional space.
|