Modifier and Type | Class and Description |
---|---|
class |
CellGameState<T extends CellGameState<T,U,V>,U extends Thinker<T,U,V>,V extends ThinkerState<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 CellGameState<T,U,V>,U extends Thinker<T,U,V>,V extends ThinkerState<T,U,V>>
A Thinker is a collection of methods that contributes to the mechanics of
the CellGameState to which it is assigned.
|
class |
ThinkerState<T extends CellGameState<T,U,V>,U extends Thinker<T,U,V>,V extends ThinkerState<T,U,V>>
A ThinkerState represents a state that a Thinker can occupy.
|
class |
TimedEvent<T extends CellGameState>
A TimedEvent represents a set of actions that can be taken after a delay
managed by a Thinker.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicGameState
A BasicGameState is a type of CellGameState that uses BasicThinkers and
BasicThinkerStates, both of 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 currently
assigned, or null if it is assigned to none.
|
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 currently
assigned.
|