wip: implement post turn handling
This commit is contained in:
@ -45,6 +45,14 @@ class GameStateManager {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles events that happen after a turn phase.
|
||||
* @return The optionally resulting {@link Event}s
|
||||
*/
|
||||
public Event[] checkPostPhase() {
|
||||
return (Event[])GameLogic.checkTurnEnd(state).toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies an array of {@link Event}s to the game state.
|
||||
* @param events The events to apply
|
||||
|
Reference in New Issue
Block a user