T
- The subclass of CellGame that this BasicGameState is used bypublic abstract class BasicGameState<T extends CellGame> extends CellGameState<T,BasicGameState<T>,BasicThinker<T>,BasicThinkerState<T>>
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(T game,
int id)
Creates a BasicGameState of the specified CellGame with the specified ID.
|
Modifier and Type | Method and Description |
---|---|
BasicGameState<T> |
getThis()
A method which returns this CellGameState as a U, rather than as a
CellGameState<T,U,V,W>.
|
addAnimInstance, addAnimInstance, addThinker, addThinkerActions, charDeletedActions, charTypedActions, clearAnimInstances, enteredActions, frameActions, getAnimation, getAnimInstance, getGame, getID, getNumAnimInstances, getNumThinkers, getTimeFactor, isActive, iteratingThroughThinkers, leftActions, removeAnimInstance, removeThinker, removeThinkerActions, renderActions, setAnimation, setAnimInstance, setTimeFactor, stringBeganActions, stringCanceledActions, stringDeletedActions, stringFinishedActions, thinkerIterator, updateThinkerListActions
public BasicGameState(T game, int id)
game
- The CellGame of which this BasicGameState isid
- This BasicGameState's IDpublic BasicGameState<T> getThis()
CellGameState
getThis
in class CellGameState<T extends CellGame,BasicGameState<T extends CellGame>,BasicThinker<T extends CellGame>,BasicThinkerState<T extends CellGame>>