T
- The type of CellGame that uses the GameStates that can involve
this EventU
- The type of GameState that can involve this Eventpublic interface Event<T extends CellGame,U extends GameState<T,U,?>>
An Event represents a sequence of actions that can be taken as part of the mechanics of a GameState. It is useful to create an Event as a lambda expression to simplify code.
Modifier and Type | Method and Description |
---|---|
void |
actions(T game,
U state)
Actions that this Event consists in taking.
|