T
- The subclass of CellGameState that this TimedEvent's Thinker is
used bypublic abstract class TimedEvent<T extends CellGameState>
extends java.lang.Object
A TimedEvent represents a set of actions that can be taken after a delay managed by a Thinker. It is useful to create an individual TimedEvent instance within the class of the Thinker that uses it and override its eventActions() method when creating it, allowing that method to easily access the internal fields and methods of the Thinker.
Constructor and Description |
---|
TimedEvent() |
Modifier and Type | Method and Description |
---|---|
abstract void |
eventActions(CellGame game,
T state)
Actions for this TimedEvent to take when activated.
|