Class LobbyCreation

All Implemented Interfaces:
Serializable

public class LobbyCreation extends ConnectionMessage
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 Details

    • LobbyCreation

      public LobbyCreation(String sender, int numPlayers, boolean expertMode)
  • 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