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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintA getter for the number of players set for the lobby which the user is requesting to create.booleanA 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:
trueif and only if expert mode must be enabled in the game
-