Class LobbyCreation
java.lang.Object
it.polimi.ingsw.eriantys.messages.Message
it.polimi.ingsw.eriantys.messages.ConnectionMessage
it.polimi.ingsw.eriantys.messages.client.LobbyCreation
- All Implemented Interfaces:
Serializable
A
ConnectionMessage
sent by a client in order to request the server to create a new lobby
with the specified number of players and game mode.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
A getter for the number of players set for the lobby which the user is requesting to create.boolean
A getter for the type of mode set for the lobby which the user is requesting to create.
-
Constructor Details
-
LobbyCreation
-
-
Method Details
-
getNumPlayers
public int getNumPlayers()A getter for the number of players set for the lobby which the user is requesting to create.- Returns:
- the number of players which the lobby can and must hold in order to start the game
-
isExpertMode
public boolean isExpertMode()A getter for the type of mode set for the lobby which the user is requesting to create.- Returns:
true
if and only if expert mode must be enabled in the game
-