Class GameState

java.lang.Object
com.csse3200.game.files.GameState

public class GameState extends Object
  • 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

      public String getModTime()
      Gets the modification time of the game state.
      Returns:
      integer representing the last modification time.
    • setModTime

      public void setModTime(String modTime)
      Sets the modification time of the game state.
      Parameters:
      modTime - integer representing the last modification day.
    • getDecisions

      public List<Decision> getDecisions()
    • setDecisions

      public void setDecisions(List<Decision> decisions)