-
enum BaseCommand.CommandContextRepresents what screen the player was on when they used the command.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAMPAIGN_MAPCommand was entered on the campaign map.
CAMPAIGN_MARKETCommand was entered in a market.
COMBAT_CAMPAIGNCommand was entered during a battle in the campaign (doesn't include simulation battles).
COMBAT_MISSIONCommand was entered during a mission.
COMBAT_SIMULATIONCommand was entered during a refit simulation battle.
-
Method Summary
Modifier and Type Method Description booleanisInCombat()Returns whether this context is on the combat map. booleanisInCampaign()Returns whether this context is on the campaign map. booleanisInMarket()Returns whether the player is interacting with a market-containing entity. booleanisCampaignAccessible()Returns whether the player is in campaign mode, including in campaign battles (even refit simulationbattles). SectorEntityTokengetEntityInteractedWith()Returns the SectorEntityToken the player is in a dialog with, if any. MarketAPIgetMarket()Returns the MarketAPI of the ) the player is in a dialog with, if any. static Array<BaseCommand.CommandContext>values()static BaseCommand.CommandContextvalueOf(String name)-
-
Method Detail
-
isInCombat
boolean isInCombat()
Returns whether this context is on the combat map.
-
isInCampaign
boolean isInCampaign()
Returns whether this context is on the campaign map.
-
isInMarket
boolean isInMarket()
Returns whether the player is interacting with a market-containing entity.
-
isCampaignAccessible
boolean isCampaignAccessible()
Returns whether the player is in campaign mode, including in campaign battles (even refit simulationbattles).
-
getEntityInteractedWith
@Nullable() SectorEntityToken getEntityInteractedWith()
Returns the SectorEntityToken the player is in a dialog with, if any.
-
getMarket
@Nullable() MarketAPI getMarket()
Returns the MarketAPI of the ) the player is in a dialog with, if any. { } of the { } the player is currently in dialog with, or { null } if they are not in a dialog with a market-containing entity.
-
values
static Array<BaseCommand.CommandContext> values()
-
valueOf
static BaseCommand.CommandContext valueOf(String name)
-
-
-
-