Enum Class LobbyServer.State

java.lang.Object
java.lang.Enum<LobbyServer.State>
it.polimi.ingsw.Server.LobbyServer.State
All Implemented Interfaces:
Serializable, Comparable<LobbyServer.State>, Constable
Enclosing class:
LobbyServer

private static enum LobbyServer.State extends Enum<LobbyServer.State>
Represents the various stages of the connection between client and server
  • Enum Constant Details

    • ACCEPT_PHASE

      public static final LobbyServer.State ACCEPT_PHASE
      client has not identified itself yet
    • REDIRECT_PHASE

      public static final LobbyServer.State REDIRECT_PHASE
      client now has a name, but is not part of a lobby
    • GAME_START_PHASE

      public static final LobbyServer.State GAME_START_PHASE
      client is part of a lobby, waiting for the game to start
    • GAME_IN_PROGRESS_PHASE

      public static final LobbyServer.State GAME_IN_PROGRESS_PHASE
      client is now in a game, playing
  • Constructor Details

    • State

      private State()
  • Method Details

    • values

      public static LobbyServer.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LobbyServer.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null