Class Commission
java.lang.Object
com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
com.fs.starfarer.api.impl.campaign.rulecmd.missions.Commission
- All Implemented Interfaces:
CommandPlugin
NotifyEvent $eventHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic RepLevel
protected InteractionDialogAPI
protected SectorEntityToken
protected FactionAPI
protected FactionAPI
protected MemoryAPI
protected boolean
protected OptionPanelAPI
protected PersonAPI
protected CargoAPI
protected FactionAPI
protected CampaignFleetAPI
protected TextPanelAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept()
boolean
execute
(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) protected boolean
protected boolean
protected boolean
protected boolean
protected void
protected void
protected void
resign
(boolean withPenalty) Methods inherited from class com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
doesCommandAddOptions, getEntityMemory, getOptionOrder
-
Field Details
-
COMMISSION_REQ
-
playerFleet
-
entity
-
playerFaction
-
entityFaction
-
text
-
options
-
playerCargo
-
memory
-
dialog
-
memoryMap
-
person
-
faction
-
offersCommissions
protected boolean offersCommissions
-
-
Constructor Details
-
Commission
public Commission()
-
-
Method Details
-
execute
public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) -
hasFactionCommission
protected boolean hasFactionCommission() -
hasOtherCommission
protected boolean hasOtherCommission() -
personCanGiveCommission
protected boolean personCanGiveCommission() -
resign
protected void resign(boolean withPenalty) -
accept
protected void accept() -
printInfo
protected void printInfo() -
playerMeetsCriteria
protected boolean playerMeetsCriteria() -
printRequirements
protected void printRequirements()
-