public class DistressResponse extends BaseCommandPlugin
| Modifier and Type | Field and Description |
|---|---|
protected InteractionDialogAPI |
dialog |
protected SectorEntityToken |
entity |
protected FactionAPI |
entityFaction |
protected FactionAPI |
faction |
protected CampaignFleetAPI |
fleet |
protected MemoryAPI |
memory |
protected java.util.Map<java.lang.String,MemoryAPI> |
memoryMap |
protected OptionPanelAPI |
options |
protected PersonAPI |
person |
protected CargoAPI |
playerCargo |
protected FactionAPI |
playerFaction |
protected CampaignFleetAPI |
playerFleet |
static float |
REP_PER_USE |
static float |
REP_SCAM |
protected TextPanelAPI |
text |
| Constructor and Description |
|---|
DistressResponse() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acceptAid() |
protected void |
cargoPodsScam() |
protected void |
didNotNeedHelp() |
boolean |
execute(java.lang.String ruleId,
InteractionDialogAPI dialog,
java.util.List<Misc.Token> params,
java.util.Map<java.lang.String,MemoryAPI> memoryMap) |
protected int |
getMaxFuel() |
protected int |
getMaxSupplies() |
protected int |
getNeededFuel() |
static int |
getNeededFuel(CampaignFleetAPI playerFleet) |
protected int |
getNeededSupplies() |
protected int |
getNumUses() |
protected int |
getPayment() |
protected float |
getRepPenalty() |
protected void |
init() |
protected boolean |
isCargoPodsScam() |
protected void |
neverMind() |
protected void |
pay() |
protected boolean |
playerNeedsHelp() |
protected void |
thank() |
protected void |
unrespond() |
doesCommandAddOptions, getEntityMemory, getOptionOrderpublic static float REP_PER_USE
public static float REP_SCAM
protected CampaignFleetAPI playerFleet
protected CampaignFleetAPI fleet
protected SectorEntityToken entity
protected FactionAPI playerFaction
protected FactionAPI entityFaction
protected TextPanelAPI text
protected OptionPanelAPI options
protected CargoAPI playerCargo
protected InteractionDialogAPI dialog
protected FactionAPI faction
public DistressResponse()
public boolean execute(java.lang.String ruleId, InteractionDialogAPI dialog, java.util.List<Misc.Token> params, java.util.Map<java.lang.String,MemoryAPI> memoryMap)
protected void init()
protected int getPayment()
protected int getNumUses()
protected boolean playerNeedsHelp()
protected void cargoPodsScam()
protected boolean isCargoPodsScam()
protected int getNeededFuel()
public static int getNeededFuel(CampaignFleetAPI playerFleet)
protected int getNeededSupplies()
protected float getRepPenalty()
protected void didNotNeedHelp()
protected void neverMind()
protected int getMaxFuel()
protected int getMaxSupplies()
protected void pay()
protected void thank()
protected void acceptAid()
protected void unrespond()