Package com.csse3200.game.files
Class GameState
java.lang.Object
com.csse3200.game.files.GameState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getDay()
Gets the current day of the game state.Gets the modification time of the game state.int
getMoney()
Gets the money of the player in the current game state.void
setDay
(int day) Sets the day of the game state.void
setDecisions
(List<Decision> decisions) void
setModTime
(String modTime) Sets the modification time of the game state.void
setMoney
(int money) Sets the money of the player in the current game state.
-
Constructor Details
-
GameState
public GameState()
-
-
Method Details
-
setDay
public void setDay(int day) Sets the day of the game state.- Parameters:
day
- integer representing how many days into the game.
-
getDay
public int getDay()Gets the current day of the game state.- Returns:
- integer representing how many days into the game.
-
setMoney
public void setMoney(int money) Sets the money of the player in the current game state.- Parameters:
money
- integer representing the player's money.
-
getMoney
public int getMoney()Gets the money of the player in the current game state.- Returns:
- integer representing the player's money.
-
getModTime
Gets the modification time of the game state.- Returns:
- integer representing the last modification time.
-
setModTime
Sets the modification time of the game state.- Parameters:
modTime
- integer representing the last modification day.
-
getDecisions
-
setDecisions
-