From f5523aa31cd01e08011b930ad0b4a4bc8fcbf120 Mon Sep 17 00:00:00 2001 From: Tobydrama Date: Tue, 14 Apr 2020 12:36:55 +0200 Subject: [PATCH] added getters and setter for gameState --- .../roborally/objects/RoboRallyGame.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/inf112/fiasko/roborally/objects/RoboRallyGame.java b/src/main/java/inf112/fiasko/roborally/objects/RoboRallyGame.java index 42672e7..a3ee01f 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/RoboRallyGame.java +++ b/src/main/java/inf112/fiasko/roborally/objects/RoboRallyGame.java @@ -2,6 +2,7 @@ package inf112.fiasko.roborally.objects; import inf112.fiasko.roborally.element_properties.Action; import inf112.fiasko.roborally.element_properties.Direction; +import inf112.fiasko.roborally.element_properties.GameState; import inf112.fiasko.roborally.element_properties.Position; import inf112.fiasko.roborally.element_properties.RobotID; import inf112.fiasko.roborally.element_properties.TileType; @@ -28,6 +29,23 @@ public class RoboRallyGame implements IDrawableGame { private final List playerList; private final boolean host; private Deck mainDeck; + private GameState gameState = GameState.INITIAL_SETUP; + + /** + * Returns the gameState of the game + * @return the gameState of the game + */ + public GameState getGameState(){ + return gameState; + } + + /** + * Sets the gameState of the game + * @param gameState the gameState + */ + public void setGameState(GameState gameState) { + this.gameState = gameState; + } /** * Instantiates a new robo rally game