Package javatro.core

Enum Class BossType

java.lang.Object
java.lang.Enum<BossType>
javatro.core.BossType
All Implemented Interfaces:
Serializable, Comparable<BossType>, Constable

public enum BossType extends Enum<BossType>
Represents the types of bosses available in the game. Each boss type modifies gameplay rules in specific ways.
  • Enum Constant Details

    • NONE

      public static final BossType NONE
    • THE_NEEDLE

      public static final BossType THE_NEEDLE
    • THE_WATER

      public static final BossType THE_WATER
    • THE_CLUB

      public static final BossType THE_CLUB
    • THE_WINDOW

      public static final BossType THE_WINDOW
    • THE_HEAD

      public static final BossType THE_HEAD
    • THE_GOAD

      public static final BossType THE_GOAD
    • THE_PLANT

      public static final BossType THE_PLANT
    • THE_PSYCHIC

      public static final BossType THE_PSYCHIC
  • Method Details

    • values

      public static BossType[] 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 BossType 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
    • getName

      public String getName()
      Returns the name of the BossType.
      Returns:
      The name of the BossType.
    • getDescription

      public String getDescription()
      Returns the description of the BossType.
      Returns:
      The description of the BossType.
    • getRandomBossType

      public static BossType getRandomBossType()
      Returns a random boss type (excluding NONE).
      Returns:
      A randomly selected boss type