public class DemandCargo extends BaseCommandPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
DemandCargo.DemandData |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
buysAICores |
protected DemandCargo.DemandData |
data |
protected InteractionDialogAPI |
dialog |
protected SectorEntityToken |
entity |
protected FactionAPI |
entityFaction |
protected FactionAPI |
faction |
protected MemoryAPI |
memory |
protected java.util.Map<java.lang.String,MemoryAPI> |
memoryMap |
protected OptionPanelAPI |
options |
protected CampaignFleetAPI |
otherFleet |
protected PersonAPI |
person |
protected CargoAPI |
playerCargo |
protected FactionAPI |
playerFaction |
protected CampaignFleetAPI |
playerFleet |
protected float |
repMult |
protected TextPanelAPI |
text |
protected float |
valueMult |
| Constructor and Description |
|---|
DemandCargo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeAndPrintDemands() |
boolean |
execute(java.lang.String ruleId,
InteractionDialogAPI dialog,
java.util.List<Misc.Token> params,
java.util.Map<java.lang.String,MemoryAPI> memoryMap) |
protected java.util.Random |
getRandom() |
protected void |
selectCores() |
doesCommandAddOptions, getEntityMemory, getOptionOrderprotected CampaignFleetAPI playerFleet
protected CampaignFleetAPI otherFleet
protected SectorEntityToken entity
protected FactionAPI playerFaction
protected FactionAPI entityFaction
protected TextPanelAPI text
protected OptionPanelAPI options
protected CargoAPI playerCargo
protected InteractionDialogAPI dialog
protected FactionAPI faction
protected boolean buysAICores
protected float valueMult
protected float repMult
protected DemandCargo.DemandData data
public DemandCargo()
public boolean execute(java.lang.String ruleId, InteractionDialogAPI dialog, java.util.List<Misc.Token> params, java.util.Map<java.lang.String,MemoryAPI> memoryMap)
protected java.util.Random getRandom()
protected void computeAndPrintDemands()
protected void selectCores()