Enum Class Skill.StatType

java.lang.Object
java.lang.Enum<Skill.StatType>
com.csse3200.game.progression.skilltree.Skill.StatType
All Implemented Interfaces:
Serializable, Comparable<Skill.StatType>, Constable
Enclosing class:
Skill

public static enum Skill.StatType extends Enum<Skill.StatType>
Enumeration of all possible stats that a skill can modify.
  • Enum Constant Details

    • HEALTH

      public static final Skill.StatType HEALTH
      Increases the player's health.
    • ATTACK_DAMAGE

      public static final Skill.StatType ATTACK_DAMAGE
      Increases the player's attack damage.
    • FIRING_SPEED

      public static final Skill.StatType FIRING_SPEED
      Increases the player's firing speed.
    • CRIT_CHANCE

      public static final Skill.StatType CRIT_CHANCE
      Increases the player's critical hit chance.
    • CURRENCY_GEN

      public static final Skill.StatType CURRENCY_GEN
      Increases the player's defense.
  • Method Details

    • values

      public static Skill.StatType[] 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 Skill.StatType 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