java.lang.Object
polimi.ingsw.am21.codex.client.localModel.GameEntry
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
GameEntry
GameEntry constructor. It is used to create a new empty game entry.- Parameters:
gameId
- the game idmaxPlayers
- the maximum number of players
-
GameEntry
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 idcurrentPlayers
- the number of players already in the gamemaxPlayers
- the maximum number of players
-
-
Method Details
-
getCurrentPlayers
-
setCurrentPlayers
-
getGameId
-
getMaxPlayers
-