java.lang.Object
polimi.ingsw.am21.codex.model.GameManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGame
(String gameName, Integer players) void
deleteGame
(String gameName) Returns the current number of players in each game.getGames()
Returns the maximum number of players in each game.
-
Constructor Details
-
GameManager
public GameManager()
-
-
Method Details
-
getGames
-
getCurrentSlots
Returns the current number of players in each game.- Returns:
- a map with the game name as key and the number of players as value
-
getMaxSlots
Returns the maximum number of players in each game.- Returns:
- a map with the game name as key and the maximum number of players as value
-
getGame
-
createGame
- Throws:
InvalidActionException
-
deleteGame
-