@NonExtendable
public interface GameManager<T extends Game<?,?,?,?,?,?,?,?,?>>
-
Method Summary
-
Method Details
-
getGame
- Parameters:
name
- Name of game or string representation of an uuid
- Returns:
- Optional with game or empty if game does not exist
- See Also:
-
-
getGame
- Parameters:
uuid
- Unique id of the game
- Returns:
- Optional with the game or empty if the game does not exist
-
getGames
- Returns:
- List of available games
-
getGameNames
- Returns:
- List of names of all game
-
hasGame
- Parameters:
name
- Name of game or string representation of an uuid
- Returns:
- true if the game exists
-
hasGame
boolean hasGame(UUID uuid)
- Parameters:
uuid
- Unique id of the game
- Returns:
- true if the game exists
-
getGameWithHighestPlayers
- Returns:
- Free game that has the highest players in it or empty optional
-
getGameWithLowestPlayers
- Returns:
- Free game that has the lowest players in it or empty optional
-
getFirstWaitingGame
- Returns:
- Game in waiting state or empty optional
-
getFirstRunningGame
- Returns:
- Game in running state or empty optional