public enum BaseCommand.CommandContext
Represents what screen the player was on when they used the command.
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 |
isCampaignAccessible()
Returns whether the player is in campaign mode, including in campaign battles (even refit simulation battles).
|
boolean |
isInCampaign()
Returns whether this context is on the campaign map.
|
boolean |
isInCombat()
Returns whether this context is on the combat map.
|
public BaseCommand.CommandContext CAMPAIGN_MAP
Command was entered on the campaign map.
public BaseCommand.CommandContext COMBAT_CAMPAIGN
Command was entered during a battle in the campaign (doesn't include simulation battles).
public BaseCommand.CommandContext COMBAT_MISSION
Command was entered during a mission.
public BaseCommand.CommandContext COMBAT_SIMULATION
Command was entered during a refit simulation battle.
public boolean isInCombat()
Returns whether this context is on the combat map.
true
if the game is on the combat map, false
otherwise. public boolean isInCampaign()
Returns whether this context is on the campaign map.
true
if the game is on the campaign map, false
otherwise. public boolean isCampaignAccessible()
Returns whether the player is in campaign mode, including in campaign battles (even refit simulation battles).
true
if the player is on the campaign map, in a campaign battle, or running a simulation in a campaign refit screen.