public static enum BaseCommand.CommandContext extends java.lang.Enum<BaseCommand.CommandContext>
Enum Constant and Description |
---|
CAMPAIGN_MAP
Command was entered on the campaign map.
|
COMBAT_CAMPAIGN
Command was entered during a battle in the campaign (doesn't include
simulation battles).
|
COMBAT_MISSION
Command was entered during a mission.
|
COMBAT_SIMULATION
Command was entered during a refit simulation battle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInCampaign()
Returns whether this context is on the campaign map.
|
boolean |
isInCombat()
Returns whether this context is on the combat map.
|
static BaseCommand.CommandContext |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BaseCommand.CommandContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseCommand.CommandContext CAMPAIGN_MAP
public static final BaseCommand.CommandContext COMBAT_CAMPAIGN
public static final BaseCommand.CommandContext COMBAT_MISSION
public static final BaseCommand.CommandContext COMBAT_SIMULATION
public static BaseCommand.CommandContext[] values()
for (BaseCommand.CommandContext c : BaseCommand.CommandContext.values()) System.out.println(c);
public static BaseCommand.CommandContext valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isInCombat()
true
if the game is on the combat map, false
otherwise.
public boolean isInCampaign()
true
if the game is on the campaign map,
false
otherwise.