Enum Class BattleMode
- All Implemented Interfaces:
Serializable
,Comparable<BattleMode>
,Constable
Enum for battle GUIs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isBattleModeAvailableInEveryBattle
(BattleMode battleMode) Function to return if the current Battle Mode of the Battle Screen can be accessed during any battle, and not just a screen that can pop up situationally in a battle.static boolean
isBattleModeUsedInBattle
(BattleMode battleMode) Function to return if the current Battle Mode of the Battle Screen can ever be shown in battle.static boolean
isModeThatCreatesPopUp
(BattleMode battleMode) static BattleMode
Returns the enum constant of this class with the specified name.static BattleMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WAITING
-
MAIN_MENU
-
CHOOSE_POKEMON
-
CHOOSE_BAG
-
USE_BAG
-
CHOOSE_ATTACK
-
APPLY_TO_POKEMON
-
YES_NO_REPLACE_MOVE
-
YES_NO_FORFEIT
-
ENFORCED_SWITCH
-
LEVEL_UP
-
REPLACE_ATTACK
-
REPLACE_ATTACK_EXTERNAL
-
CHOOSE_TARGETS
-
CHOOSE_RELEARN_MOVE
-
CHOOSE_TUTOR
-
CHOOSE_ETHER
-
MEGA_EVOLUTION
-
ENFORCED_REVIVE
-
-
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
-
isBattleModeUsedInBattle
Function to return if the current Battle Mode of the Battle Screen can ever be shown in battle.- Parameters:
battleMode
- The current mode of the Battle Screen.- Returns:
- if the mode of the Battle Screen can ever be shown in battle.
-
isBattleModeAvailableInEveryBattle
Function to return if the current Battle Mode of the Battle Screen can be accessed during any battle, and not just a screen that can pop up situationally in a battle.- Parameters:
battleMode
- The current mode of the Battle Screen.- Returns:
- if the mode of the Battle Screen can be accessed during any battle.
-
isModeThatCreatesPopUp
-