Package megamek.client.ui.swing
Enum Class DeployMinefieldDisplay.DeployMinefieldCommand
java.lang.Object
java.lang.Enum<DeployMinefieldDisplay.DeployMinefieldCommand>
megamek.client.ui.swing.DeployMinefieldDisplay.DeployMinefieldCommand
- All Implemented Interfaces:
Serializable
,Comparable<DeployMinefieldDisplay.DeployMinefieldCommand>
,Constable
,StatusBarPhaseDisplay.PhaseCommand
- Enclosing class:
- DeployMinefieldDisplay
public static enum DeployMinefieldDisplay.DeployMinefieldCommand
extends Enum<DeployMinefieldDisplay.DeployMinefieldCommand>
implements StatusBarPhaseDisplay.PhaseCommand
This enumeration lists all of the possible ActionCommands that can be
carried out during the deploy minefield phase. Each command has a string
for the command.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfromString
(String command) Given a string, figure out the command valueGet all the commands that aren't NO-OPgetCmd()
int
void
setPriority
(int p) toString()
Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMAND_NONE
-
DEPLOY_MINE_CONV
-
DEPLOY_MINE_COM
-
DEPLOY_MINE_VIBRA
-
DEPLOY_MINE_ACTIVE
-
DEPLOY_MINE_INFERNO
-
DEPLOY_CARRYABLE
-
REMOVE_MINES
-
-
Field Details
-
priority
public int priorityPriority that determines this buttons order
-
-
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
-
fromString
Given a string, figure out the command value -
getActualCommands
Get all the commands that aren't NO-OP -
getCmd
- Specified by:
getCmd
in interfaceStatusBarPhaseDisplay.PhaseCommand
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceStatusBarPhaseDisplay.PhaseCommand
-
setPriority
public void setPriority(int p) - Specified by:
setPriority
in interfaceStatusBarPhaseDisplay.PhaseCommand
-
toString
- Overrides:
toString
in classEnum<DeployMinefieldDisplay.DeployMinefieldCommand>
-
getHotKeyDesc
-