Class Objectives
java.lang.Object
com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
com.fs.starfarer.api.impl.campaign.rulecmd.salvage.Objectives
- All Implemented Interfaces:
CommandPlugin
NotifyEvent $eventHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static float
static float
static float
static float
protected InteractionDialogAPI
protected SectorEntityToken
protected FactionAPI
protected FactionAPI
protected MemoryAPI
protected OptionPanelAPI
protected CargoAPI
protected FactionAPI
protected CampaignFleetAPI
static float
protected TextPanelAPI
static int
static String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
canActivate
(String type) boolean
boolean
canBurst()
void
protected void
doBurst()
boolean
execute
(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) int[]
String[]
int[]
int[]
String[]
String[]
int[]
int[]
String[]
void
hack()
protected boolean
boolean
protected void
init
(SectorEntityToken entity) boolean
isHacked()
boolean
void
printBurstCost
(boolean withPrompt) void
void
printDescription
(String type) void
void
void
printRepairCost
(boolean withPrompt) void
void
void
void
reset()
void
void
void
unhack()
void
void
updateOrbitingEntities
(LocationAPI loc, SectorEntityToken prev, SectorEntityToken built) Methods inherited from class com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
doesCommandAddOptions, getEntityMemory, getOptionOrder
-
Field Details
-
BURST_RANGE
-
WORMHOLE_FUEL
public static int WORMHOLE_FUEL -
WORMHOLE_TYPE_STR
-
BURST_RANGE_MAKESHIFT
public static float BURST_RANGE_MAKESHIFT -
BURST_RANGE_DOMAIN
public static float BURST_RANGE_DOMAIN -
BURST_RANGE_SCAVENGER_MIN
public static float BURST_RANGE_SCAVENGER_MIN -
BURST_RANGE_SCAVENGER_MAX
public static float BURST_RANGE_SCAVENGER_MAX -
SALVAGE_FRACTION
public static float SALVAGE_FRACTION -
playerFleet
-
entity
-
playerFaction
-
entityFaction
-
text
-
options
-
playerCargo
-
memory
-
dialog
-
memoryMap
-
faction
-
-
Constructor Details
-
Objectives
public Objectives() -
Objectives
-
-
Method Details
-
init
-
execute
public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) -
doBurst
protected void doBurst() -
hasRepImpact
protected boolean hasRepImpact() -
salvage
-
updateOrbitingEntities
public void updateOrbitingEntities(LocationAPI loc, SectorEntityToken prev, SectorEntityToken built) -
isNonFunctional
public boolean isNonFunctional() -
control
-
unhack
public void unhack() -
hack
public void hack() -
reset
public void reset() -
isHacked
public boolean isHacked() -
build
-
canBuild
-
removeBuildCosts
public void removeBuildCosts() -
removeRepairCosts
-
canActivate
-
canBurst
public boolean canBurst() -
updateMemory
public void updateMemory() -
printDescription
-
printOwner
public void printOwner() -
printHackDesc
public void printHackDesc() -
printRepairCost
public void printRepairCost(boolean withPrompt) -
printBurstCost
public void printBurstCost(boolean withPrompt) -
printSalvage
public void printSalvage() -
printCost
-
getWormholeResources
-
getWormholeQuantities
public int[] getWormholeQuantities() -
getResources
-
getSalvageQuantities
public int[] getSalvageQuantities() -
getQuantities
public int[] getQuantities() -
getRepairResources
-
getRepairQuantities
public int[] getRepairQuantities() -
getBurstQuantities
public int[] getBurstQuantities() -
getBurstResources
-
hasWormholeAnchor
public boolean hasWormholeAnchor() -
getWormholeAnchors
-
selectWormholeAnchor
public void selectWormholeAnchor()
-