mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
added getters and setter for gameState
This commit is contained in:
parent
db08c273ce
commit
f5523aa31c
@ -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<Player> playerList;
|
||||
private final boolean host;
|
||||
private Deck<ProgrammingCard> 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user