Enum Class CLICommand

java.lang.Object
java.lang.Enum<CLICommand>
it.polimi.ingsw.client.enums.CLICommand
All Implemented Interfaces:
Serializable, Comparable<CLICommand>, Constable

public enum CLICommand extends Enum<CLICommand>
  • Enum Constant Details

    • join_matchmaking

      public static final CLICommand join_matchmaking
    • play_card

      public static final CLICommand play_card
    • mv_std_dining

      public static final CLICommand mv_std_dining
    • mv_std_island

      public static final CLICommand mv_std_island
    • mv_mother_nature

      public static final CLICommand mv_mother_nature
    • grab_std

      public static final CLICommand grab_std
    • login

      public static final CLICommand login
    • signup

      public static final CLICommand signup
    • play_char

      public static final CLICommand play_char
    • chat

      public static final CLICommand chat
    • end_turn

      public static final CLICommand end_turn
    • rollback

      public static final CLICommand rollback
    • rejoin

      public static final CLICommand rejoin
    • help

      public static final CLICommand help
    • characters_info

      public static final CLICommand characters_info
  • Field Details

    • numberOfParams

      public final int numberOfParams
  • Constructor Details

    • CLICommand

      private CLICommand(int numberOfParams)
    • CLICommand

      private CLICommand()
  • Method Details

    • values

      public static CLICommand[] 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 CLICommand 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
    • text

      public String text()