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>,SpaceThinkerState<T>>
A SpaceThinker is the type of Thinker that is used by SpaceStates and uses SpaceThinkerStates. A SpaceThinker can take beforeMovementActions() and afterMovementActions() every frame before and after its SpaceState moves its assigned ThinkerObjects, respectively.
Constructor and Description |
---|
SpaceThinker() |
Modifier and Type | Method and Description |
---|---|
void |
afterMovementActions(T game,
SpaceState<T> state)
Actions for this SpaceThinker to take once every frame, after its
SpaceState moves its assigned ThinkerObjects.
|
void |
beforeMovementActions(T game,
SpaceState<T> state)
Actions for this SpaceThinker to take once every frame, after
SpaceThinkers take their frameActions() 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,W>.
|
addedActions, frameActions, getActionPriority, getEffectiveTimeFactor, getGameState, getNewActionPriority, getNewGameState, getThinkerState, getThinkerStateDuration, getTimeFactor, getTimerValue, removedActions, setActionPriority, setGameState, setThinkerState, setThinkerStateDuration, setTimeFactor, setTimerValue, timeUnitActions
public final SpaceThinker<T> getThis()
Thinker
getThis
in class Thinker<T extends CellGame,SpaceState<T extends CellGame>,SpaceThinker<T extends CellGame>,SpaceThinkerState<T extends CellGame>>
public void beforeMovementActions(T game, SpaceState<T> state)
game
- This SpaceThinker's CellGamestate
- This SpaceThinker's SpaceStatepublic void afterMovementActions(T game, SpaceState<T> state)
game
- This SpaceThinker's CellGamestate
- This SpaceThinker's SpaceState