Enum Class Character

java.lang.Object
java.lang.Enum<Character>
it.polimi.ingsw.server.model.game_logic.enums.Character
All Implemented Interfaces:
Serializable, Comparable<Character>, Constable

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

    • NONE

      public static final Character NONE
    • PUT_ONE_STUDENT_FROM_CHARACTER_TO_ARCHIPELAGO

      public static final Character PUT_ONE_STUDENT_FROM_CHARACTER_TO_ARCHIPELAGO
    • GET_PROFESSORS_WITH_SAME_STUDENTS

      public static final Character GET_PROFESSORS_WITH_SAME_STUDENTS
    • MOVE_MOTHER_NATURE_TO_ANY_ARCHIPELAGO

      public static final Character MOVE_MOTHER_NATURE_TO_ANY_ARCHIPELAGO
    • TWO_ADDITIONAL_STEPS

      public static final Character TWO_ADDITIONAL_STEPS
    • LOCK_ARCHIPELAGO

      public static final Character LOCK_ARCHIPELAGO
    • TOWERS_DONT_COUNT

      public static final Character TOWERS_DONT_COUNT
    • SWAP_THREE_STUDENTS_BETWEEN_CHARACTER_AND_ENTRANCE

      public static final Character SWAP_THREE_STUDENTS_BETWEEN_CHARACTER_AND_ENTRANCE
    • TWO_ADDITIONAL_INFLUENCE

      public static final Character TWO_ADDITIONAL_INFLUENCE
    • COLOR_DOESNT_COUNT

      public static final Character COLOR_DOESNT_COUNT
    • SWAP_TWO_STUDENTS_BETWEEN_ENTRANCE_AND_DINING_ROOM

      public static final Character SWAP_TWO_STUDENTS_BETWEEN_ENTRANCE_AND_DINING_ROOM
    • PUT_ONE_STUDENT_FROM_CHARACTER_INTO_DINING_ROOM

      public static final Character PUT_ONE_STUDENT_FROM_CHARACTER_INTO_DINING_ROOM
    • PUT_THREE_STUDENTS_IN_THE_BAG

      public static final Character PUT_THREE_STUDENTS_IN_THE_BAG
  • Field Details

    • characterId

      public final int characterId
    • initialCost

      public final int initialCost
    • effect

      public final String effect
    • studentsNumberOnCharacter

      public final int studentsNumberOnCharacter
  • Constructor Details

    • Character

      private Character(int characterId, int initialCost, String effect, int studentsNumberOnCharacter)
  • Method Details

    • values

      public static Character[] 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 Character 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
    • fromId

      public static Optional<Character> fromId(int i)