Class CargoPods
java.lang.Object
com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
com.fs.starfarer.api.impl.campaign.rulecmd.salvage.CargoPods
- All Implemented Interfaces:
CommandPlugin
NotifyEvent $eventHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
static final String
protected InteractionDialogAPI
protected SectorEntityToken
protected FactionAPI
static final String
protected MemoryAPI
protected OptionPanelAPI
protected CargoAPI
protected FactionAPI
protected CampaignFleetAPI
protected CargoPodsEntityPlugin
protected CargoAPI
protected TextPanelAPI
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected boolean
protected void
protected void
protected void
destroy()
boolean
execute
(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) static SectorEntityToken
findOrbitFocus
(SectorEntityToken entity) protected boolean
isLocked()
protected boolean
void
protected void
pruneCargo
(float fractionKeep) protected void
protected void
static void
stabilizeOrbit
(SectorEntityToken entity, boolean makeDiscovered) Methods inherited from class com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
doesCommandAddOptions, getEntityMemory, getOptionOrder
-
Field Details
-
TRAPPED
- See Also:
-
LOCKED
- See Also:
-
CAN_UNLOCK
- See Also:
-
BREAK_KEEP_FRACTION
public static final float BREAK_KEEP_FRACTION- See Also:
-
playerFleet
-
entity
-
playerFaction
-
entityFaction
-
text
-
options
-
playerCargo
-
podsCargo
-
memory
-
dialog
-
plugin
-
memoryMap
-
-
Constructor Details
-
CargoPods
public CargoPods()
-
-
Method Details
-
isLocked
protected boolean isLocked() -
isTrapped
protected boolean isTrapped() -
canUnlock
protected boolean canUnlock() -
execute
public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) -
computeStabilizeData
protected void computeStabilizeData() -
findOrbitFocus
-
stabilizeOrbit
-
stabilize
protected void stabilize() -
destabilize
protected void destabilize() -
breakLocks
protected void breakLocks() -
pruneCargo
protected void pruneCargo(float fractionKeep) -
destroy
protected void destroy() -
showDescription
protected void showDescription() -
openCargo
public void openCargo()
-