Enum Class PhysicalDisplay.PhysicalCommand
java.lang.Object
java.lang.Enum<PhysicalDisplay.PhysicalCommand>
megamek.client.ui.panels.phaseDisplay.PhysicalDisplay.PhysicalCommand
- All Implemented Interfaces:
Serializable,Comparable<PhysicalDisplay.PhysicalCommand>,Constable,StatusBarPhaseDisplay.PhaseCommand
- Enclosing class:
PhysicalDisplay
public static enum PhysicalDisplay.PhysicalCommand
extends Enum<PhysicalDisplay.PhysicalCommand>
implements StatusBarPhaseDisplay.PhaseCommand
This enumeration lists all the possible ActionCommands that can be carried out during the physical phase. Each
command has a string for the command plus a flag that determines what unit type it is appropriate for.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetCmd()intvoidsetPriority(int p) toString()Returns the enum constant of this class with the specified name.static PhysicalDisplay.PhysicalCommand[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PHYSICAL_NEXT
-
PHYSICAL_PUNCH
-
PHYSICAL_KICK
-
PHYSICAL_CLUB
-
PHYSICAL_BRUSH_OFF
-
PHYSICAL_THRASH
-
PHYSICAL_DODGE
-
PHYSICAL_PUSH
-
PHYSICAL_TRIP
-
PHYSICAL_GRAPPLE
-
PHYSICAL_JUMP_JET
-
PHYSICAL_PROTO
-
PHYSICAL_SEARCHLIGHT
-
PHYSICAL_EXPLOSIVES
-
PHYSICAL_VIBRO
-
PHYSICAL_PHEROMONE
-
PHYSICAL_TOXIN
-
PHYSICAL_CLEAR_WOODS
-
PHYSICAL_MORE
-
PHYSICAL_TWIST
-
-
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
-
getCmd
- Specified by:
getCmdin interfaceStatusBarPhaseDisplay.PhaseCommand
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceStatusBarPhaseDisplay.PhaseCommand
-
setPriority
public void setPriority(int p) - Specified by:
setPriorityin interfaceStatusBarPhaseDisplay.PhaseCommand
-
toString
- Overrides:
toStringin classEnum<PhysicalDisplay.PhysicalCommand>
-
getHotKeyDesc
-