Class DistressResponse
java.lang.Object
com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
com.fs.starfarer.api.impl.campaign.rulecmd.salvage.DistressResponse
- All Implemented Interfaces:
CommandPlugin
NotifyEvent $eventHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InteractionDialogAPI
protected SectorEntityToken
protected FactionAPI
protected FactionAPI
protected CampaignFleetAPI
protected MemoryAPI
protected OptionPanelAPI
protected PersonAPI
protected CargoAPI
protected FactionAPI
protected CampaignFleetAPI
static float
static float
protected TextPanelAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
boolean
execute
(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) protected int
protected int
protected int
static int
getNeededFuel
(CampaignFleetAPI playerFleet) protected int
protected int
protected int
protected float
protected void
init()
protected boolean
protected void
protected void
pay()
protected boolean
protected void
thank()
protected void
Methods inherited from class com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
doesCommandAddOptions, getEntityMemory, getOptionOrder
-
Field Details
-
REP_PER_USE
public static float REP_PER_USE -
REP_SCAM
public static float REP_SCAM -
playerFleet
-
fleet
-
entity
-
playerFaction
-
entityFaction
-
text
-
options
-
playerCargo
-
memory
-
dialog
-
memoryMap
-
person
-
faction
-
-
Constructor Details
-
DistressResponse
public DistressResponse()
-
-
Method Details
-
execute
public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) -
init
protected void init() -
getPayment
protected int getPayment() -
getNumUses
protected int getNumUses() -
playerNeedsHelp
protected boolean playerNeedsHelp() -
cargoPodsScam
protected void cargoPodsScam() -
isCargoPodsScam
protected boolean isCargoPodsScam() -
getNeededFuel
protected int getNeededFuel() -
getNeededFuel
-
getNeededSupplies
protected int getNeededSupplies() -
getRepPenalty
protected float getRepPenalty() -
didNotNeedHelp
protected void didNotNeedHelp() -
neverMind
protected void neverMind() -
getMaxFuel
protected int getMaxFuel() -
getMaxSupplies
protected int getMaxSupplies() -
pay
protected void pay() -
thank
protected void thank() -
acceptAid
protected void acceptAid() -
unrespond
protected void unrespond()
-