T
- The subclass of CellGame that this SpaceThinker's SpaceState is
used bypublic abstract class SpaceThinker<T extends CellGame> extends Thinker<T,SpaceState<T>,SpaceThinker<T>>
A SpaceThinker is the type of Thinker that is used by SpaceStates. A SpaceThinker can take beforeMovementActions() every frame before its SpaceState moves its assigned ThinkerObjects.
Constructor and Description |
---|
SpaceThinker() |
Modifier and Type | Method and Description |
---|---|
void |
beforeMovementActions(T game,
SpaceState<T> state)
Actions for this SpaceThinker to take once every frame, after
SpaceThinkers take their timeUnitActions() but before its SpaceState
moves its assigned ThinkerObjects.
|
SpaceThinker<T> |
getThis()
A method which returns this Thinker as a V, rather than as a
Thinker<T,U,V>.
|
addedActions, addThinkerActions, addThinkerActions, frameActions, getActionPriority, getEffectiveTimeFactor, getGame, getGameState, getNewActionPriority, getNewThinkerGroup, getThinkerGroup, getTimeFactor, getTimerValue, removedActions, removeThinkerActions, removeThinkerActions, setActionPriority, setThinkerGroup, setTimeFactor, setTimerValue, timeUnitActions
addThinker, getNumThinkers, iteratingThroughThinkers, removeAllSubThinkers, removeAllThinkers, removeLineage, removeThinker, thinkerIterator, updateThinkerListActions
public final SpaceThinker<T> getThis()
Thinker
getThis
in class Thinker<T extends CellGame,SpaceState<T extends CellGame>,SpaceThinker<T extends CellGame>>
public void beforeMovementActions(T game, SpaceState<T> state)
game
- This SpaceThinker's SpaceState's CellGamestate
- This SpaceThinker's SpaceState