Enum Class CharacterType

All Implemented Interfaces:
Serializable, Comparable<CharacterType>, Constable

public enum CharacterType extends Enum<CharacterType>
Enumeration representing the different types of characters in the game.

Used to differentiate behavior and interactions, such as bullet collisions.

  • Enum Constant Details

    • PlayerType

      public static final CharacterType PlayerType
      Player character type
    • ChaserType

      public static final CharacterType ChaserType
      Chaser enemy type
    • JumperType

      public static final CharacterType JumperType
      Jumper enemy type
    • BossType

      public static final CharacterType BossType
      Boss enemy type
  • Constructor Details

    • CharacterType

      private CharacterType()
  • Method Details

    • values

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