feat: implement method to start a game

This commit is contained in:
2021-05-19 20:04:10 +02:00
parent f3b5fc277e
commit 596ace355a
3 changed files with 18 additions and 3 deletions

View File

@ -57,6 +57,13 @@ public class GameInstance {
return manager.processRequests(requests, false);
}
/**
* Initializes and starts the game.
*/
public void startGame() {
emit(manager.startGame());
}
/**
* Produces a {@link EventType#GamestateEvent} for the current {@link GameState}.
* @return The resulting event