Enum Class ActionType

java.lang.Object
java.lang.Enum<ActionType>
it.polimi.ingsw.Client.GUI.ActionType
All Implemented Interfaces:
Serializable, Comparable<ActionType>, Constable

public enum ActionType extends Enum<ActionType>
Enum used to represent islandFieldPanel's status

MOVESTUDENT --> islandFieldPanel is waiting for user to click on an island to move the student from playerBoard

MOVEMOTHERNATURE --> islandFieldPanel is waiting for user to click on an island to move motherNature

CHARACTERCARD --> islandFieldPanel is waiting for user to click on an island to apply selected characterCard's effect

  • Enum Constant Details

    • MOVESTUDENT

      public static final ActionType MOVESTUDENT
    • MOVEMOTHERNATURE

      public static final ActionType MOVEMOTHERNATURE
    • CHARACTERCARD

      public static final ActionType CHARACTERCARD
  • Constructor Details

    • ActionType

      private ActionType()
  • Method Details

    • values

      public static ActionType[] 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 ActionType 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