wip: implement post turn handling

This commit is contained in:
2021-05-19 19:59:41 +02:00
parent 7bac3bd46a
commit f3b5fc277e
4 changed files with 107 additions and 1 deletions

View File

@ -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