Package com.ohacd.matchbox.api.events
Enum Class AbilityUseEvent.AbilityType
java.lang.Object
java.lang.Enum<AbilityUseEvent.AbilityType>
com.ohacd.matchbox.api.events.AbilityUseEvent.AbilityType
- All Implemented Interfaces:
Serializable,Comparable<AbilityUseEvent.AbilityType>,Constable
- Enclosing class:
AbilityUseEvent
Types of abilities that can be used.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMedic cures an infected playerSpark causes delusion (fake infection) on a playerMedic uses Healing Sight to see infected playersSpark uses Hunter Vision to see all playersSpark swaps positions with another playerSwipe attack (used by Spark) -
Method Summary
Modifier and TypeMethodDescriptionstatic AbilityUseEvent.AbilityTypeReturns the enum constant of this class with the specified name.static AbilityUseEvent.AbilityType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HUNTER_VISION
Spark uses Hunter Vision to see all players -
SPARK_SWAP
Spark swaps positions with another player -
DELUSION
Spark causes delusion (fake infection) on a player -
HEALING_SIGHT
Medic uses Healing Sight to see infected players -
CURE
Medic cures an infected player -
SWIPE
Swipe attack (used by Spark)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-