Enum Class Status

java.lang.Object
java.lang.Enum<Status>
it.polimi.ingsw.Common.Status
All Implemented Interfaces:
Serializable, Comparable<Status>, Constable

public enum Status extends Enum<Status>
Informative of game's evolution in communication abstraction
  • Enum Constant Details

    • EOS

      public static final Status EOS
    • Sending_Identifier

      public static final Status Sending_Identifier
    • Request_NumberOfPlayers

      public static final Status Request_NumberOfPlayers
    • Response_NumberOfPlayers

      public static final Status Response_NumberOfPlayers
    • Request_Nickname

      public static final Status Request_Nickname
    • Response_Nickname

      public static final Status Response_Nickname
    • Accepted_Request

      public static final Status Accepted_Request
    • Denied_Request

      public static final Status Denied_Request
    • NotYourTurn

      public static final Status NotYourTurn
    • YourTurn

      public static final Status YourTurn
    • Move_Request

      public static final Status Move_Request
    • SuccessfulMove

      public static final Status SuccessfulMove
    • FailedMove

      public static final Status FailedMove
    • SendingBoard

      public static final Status SendingBoard
    • SendingShelf

      public static final Status SendingShelf
    • SendingPersonalGoalCard

      public static final Status SendingPersonalGoalCard
    • SendingCommonGoalCardSpecification

      public static final Status SendingCommonGoalCardSpecification
    • AchievementUpdate

      public static final Status AchievementUpdate
    • PlayerScoreCards

      public static final Status PlayerScoreCards
    • LastTurn

      public static final Status LastTurn
    • MoveAllowed

      public static final Status MoveAllowed
    • MoveNotAllowed

      public static final Status MoveNotAllowed
    • GameEnded

      public static final Status GameEnded
    • FinalScoreboard

      public static final Status FinalScoreboard
    • ForcedGameEnd

      public static final Status ForcedGameEnd
    • KeepAlive

      public static final Status KeepAlive
    • KATimeout

      public static final Status KATimeout
    • InvalidStatus

      public static final Status InvalidStatus
    • Error

      public static final Status Error
  • Field Details

    • description

      @Expose final String description
  • Constructor Details

    • Status

      private Status(String description)
  • Method Details

    • values

      public static Status[] 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 Status 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
    • getDescription

      public String getDescription()
      Returns:
      Status' description