Modifier and Type | Method and Description |
---|---|
CellGame |
CellGameState.getGame()
Returns the CellGame to which this CellGameState belongs.
|
Modifier and Type | Method and Description |
---|---|
void |
Thinker.addedActions(CellGame game,
T state)
Actions for this Thinker to take immediately after being added to a new
CellGameState.
|
void |
CellGameState.addThinkerActions(CellGame game,
U thinker)
Actions for this CellGameState to take immediately after adding a Thinker
to itself.
|
void |
CellGameState.charDeleted(CellGame game,
char c)
Actions for this CellGameState to take immediately after a character is
deleted from its CellGame's typed String.
|
void |
CellGameState.charTyped(CellGame game,
char c)
Actions for this CellGameState to take immediately after a character is
typed to its CellGame's typed String.
|
void |
CellGameState.enteredActions(CellGame game)
Actions for this CellGameState to take immediately after being entered.
|
void |
ThinkerState.enteredActions(CellGame game,
T state)
Actions for this ThinkerState to take immediately after being entered and
immediately before getDuration() is called.
|
abstract void |
TimedEvent.eventActions(CellGame game,
T state)
Actions for this TimedEvent to take when activated.
|
void |
CellGameState.frameActions(CellGame game)
Actions for this CellGameState to take once every frame, after all of its
Thinkers have taken their frameActions().
|
void |
Thinker.frameActions(CellGame game,
T state)
Actions for this Thinker to take once every frame, after Thinkers take
their timeUnitActions() but before its CellGameState takes its own
frameActions().
|
void |
ThinkerState.frameActions(CellGame game,
T state)
Actions for this ThinkerState to take once every frame, immediately
before its Thinker takes its own frameActions().
|
void |
CellGameState.leftActions(CellGame game)
Actions for this CellGameState to take immediately before being exited.
|
void |
ThinkerState.leftActions(CellGame game,
T state)
Actions for this ThinkerState to take before being left, and immediately
before getNextState() is called.
|
void |
Thinker.removedActions(CellGame game,
T state)
Actions for this Thinker to take immediately before being removed from
its CellGameState.
|
void |
CellGameState.removeThinkerActions(CellGame game,
U thinker)
Actions for this CellGameState to take immediately before removing a
Thinker from itself.
|
void |
CellGameState.renderActions(CellGame game,
org.newdawn.slick.Graphics g,
int x1,
int y1,
int x2,
int y2)
Actions for this CellGameState to take each frame to render its visuals.
|
static void |
CellGame.startGame(CellGame game)
Starts a CellGame.
|
void |
CellGameState.stringBegan(CellGame game,
java.lang.String s)
Actions for this CellGameState to take immediately after its CellGame
begins typing a new String.
|
void |
CellGameState.stringCanceled(CellGame game,
java.lang.String s)
Actions for this CellGameState to take immediately after its CellGame's
typed String is canceled.
|
void |
CellGameState.stringDeleted(CellGame game,
java.lang.String s)
Actions for this CellGameState to take immediately after its CellGame's
typed String is deleted and reset to the empty String.
|
void |
CellGameState.stringFinished(CellGame game,
java.lang.String s)
Actions for this CellGameState to take immediately after its CellGame's
typed String is finished.
|
void |
Thinker.timeUnitActions(CellGame game,
T state)
Actions for this Thinker to take once every time unit, after
AnimationInstances update their indices but before Thinkers take their
frameActions().
|
void |
ThinkerState.timeUnitActions(CellGame game,
T state)
Actions for this ThinkerState to take once every time unit, immediately
before its Thinker takes its own timeUnitActions().
|
void |
CellGameState.updateThinkerListActions(CellGame game)
Actions for this CellGameState to take immediately after updating its
list of Thinkers.
|
Constructor and Description |
---|
BasicGameState(CellGame game,
int id)
Creates a BasicGameState of the specified CellGame with the specified ID.
|
CellGameState(CellGame game,
int id)
Creates a new CellGameState of the specified CellGame with the specified
ID.
|