java.lang.Object
polimi.ingsw.am21.codex.client.localModel.GameEntry

public class GameEntry extends Object
CLass that represents a game available in the game menu. GameEntry is used to store the information about the game, such as the number of players and the maximum number of players. GameEntries are stored in the local menu class
See Also:
  • Constructor Details

    • GameEntry

      public GameEntry(String gameId, Integer maxPlayers)
      GameEntry constructor. It is used to create a new empty game entry.
      Parameters:
      gameId - the game id
      maxPlayers - the maximum number of players
    • GameEntry

      public GameEntry(String gameId, Integer currentPlayers, Integer maxPlayers)
      GameEntry constructor. It is used to create a new game entry with a specified number of players already in the game
      Parameters:
      gameId - the game id
      currentPlayers - the number of players already in the game
      maxPlayers - the maximum number of players
  • Method Details

    • getCurrentPlayers

      public Integer getCurrentPlayers()
    • setCurrentPlayers

      public void setCurrentPlayers(Integer currentPlayers)
    • getGameId

      public String getGameId()
    • getMaxPlayers

      public Integer getMaxPlayers()