feat: implement method to start a game
This commit is contained in:
@ -53,6 +53,14 @@ class GameStateManager {
|
||||
return (Event[])GameLogic.checkTurnEnd(state).toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts the game.
|
||||
* @return The resulting {@link Event}s
|
||||
*/
|
||||
public Event[] startGame() {
|
||||
return (Event[])GameLogic.handleTurnEnd(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