public abstract class BasicGameState extends CellGameState<BasicGameState,BasicThinker,BasicThinkerState>
A BasicGameState is a type of CellGameState that uses BasicThinkers and BasicThinkerStates, both of which have no special capabilities. It is designed to be easily extended by types of CellGameStates that do not require custom fields or methods to be automatically shared among themselves, their Thinkers, and their ThinkerStates.
Constructor and Description |
---|
BasicGameState(CellGame game,
int id)
Creates a BasicGameState of the specified CellGame with the specified ID.
|
Modifier and Type | Method and Description |
---|---|
BasicGameState |
getThis()
A method which returns this CellGameState as a T, rather than as a
CellGameState<T,U,V>.
|
addAnimInstance, addAnimInstance, addThinker, addThinkerActions, charDeleted, charTyped, clearAnimInstances, enteredActions, frameActions, getAnimation, getAnimInstance, getGame, getID, getTimeFactor, isActive, iteratingThroughThinkers, leftActions, removeAnimInstance, removeThinker, removeThinkerActions, renderActions, setAnimation, setAnimInstance, setTimeFactor, stringBegan, stringCanceled, stringDeleted, stringFinished, thinkerIterator, updateThinkerListActions
public BasicGameState(CellGame game, int id)
game
- The CellGame of which this BasicGameState isid
- This BasicGameState's IDpublic BasicGameState getThis()
CellGameState
getThis
in class CellGameState<BasicGameState,BasicThinker,BasicThinkerState>