public class Objectives extends BaseCommandPlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BURST_RANGE |
static float |
BURST_RANGE_DOMAIN |
static float |
BURST_RANGE_MAKESHIFT |
static float |
BURST_RANGE_SCAVENGER_MAX |
static float |
BURST_RANGE_SCAVENGER_MIN |
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 CargoAPI |
playerCargo |
protected FactionAPI |
playerFaction |
protected CampaignFleetAPI |
playerFleet |
static float |
SALVAGE_FRACTION |
protected TextPanelAPI |
text |
static int |
WORMHOLE_FUEL |
static java.lang.String |
WORMHOLE_TYPE_STR |
Constructor and Description |
---|
Objectives() |
Objectives(SectorEntityToken entity) |
Modifier and Type | Method and Description |
---|---|
void |
build(java.lang.String type,
java.lang.String factionId) |
boolean |
canActivate(java.lang.String type) |
boolean |
canBuild(java.lang.String type) |
boolean |
canBurst() |
void |
control(java.lang.String factionId) |
protected void |
doBurst() |
boolean |
execute(java.lang.String ruleId,
InteractionDialogAPI dialog,
java.util.List<Misc.Token> params,
java.util.Map<java.lang.String,MemoryAPI> memoryMap) |
int[] |
getBurstQuantities() |
java.lang.String[] |
getBurstResources() |
int[] |
getQuantities() |
int[] |
getRepairQuantities() |
java.lang.String[] |
getRepairResources() |
java.lang.String[] |
getResources() |
int[] |
getSalvageQuantities() |
CargoAPI |
getWormholeAnchors() |
int[] |
getWormholeQuantities() |
java.lang.String[] |
getWormholeResources() |
void |
hack() |
protected boolean |
hasRepImpact() |
boolean |
hasWormholeAnchor() |
protected void |
init(SectorEntityToken entity) |
boolean |
isHacked() |
boolean |
isNonFunctional() |
void |
printBurstCost(boolean withPrompt) |
void |
printCost(java.lang.String type) |
void |
printDescription(java.lang.String type) |
void |
printHackDesc() |
void |
printOwner() |
void |
printRepairCost(boolean withPrompt) |
void |
printSalvage() |
void |
removeBuildCosts() |
void |
removeRepairCosts(TextPanelAPI text) |
void |
reset() |
void |
salvage(java.lang.String factionId) |
void |
selectWormholeAnchor() |
void |
unhack() |
void |
updateMemory() |
doesCommandAddOptions, getEntityMemory, getOptionOrder
public static java.lang.String BURST_RANGE
public static int WORMHOLE_FUEL
public static java.lang.String WORMHOLE_TYPE_STR
public static float BURST_RANGE_MAKESHIFT
public static float BURST_RANGE_DOMAIN
public static float BURST_RANGE_SCAVENGER_MIN
public static float BURST_RANGE_SCAVENGER_MAX
public static float SALVAGE_FRACTION
protected CampaignFleetAPI playerFleet
protected SectorEntityToken entity
protected FactionAPI playerFaction
protected FactionAPI entityFaction
protected TextPanelAPI text
protected OptionPanelAPI options
protected CargoAPI playerCargo
protected MemoryAPI memory
protected InteractionDialogAPI dialog
protected java.util.Map<java.lang.String,MemoryAPI> memoryMap
protected FactionAPI faction
public Objectives()
public Objectives(SectorEntityToken entity)
protected void init(SectorEntityToken entity)
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 doBurst()
protected boolean hasRepImpact()
public void salvage(java.lang.String factionId)
public boolean isNonFunctional()
public void control(java.lang.String factionId)
public void unhack()
public void hack()
public void reset()
public boolean isHacked()
public void build(java.lang.String type, java.lang.String factionId)
public boolean canBuild(java.lang.String type)
public void removeBuildCosts()
public void removeRepairCosts(TextPanelAPI text)
public boolean canActivate(java.lang.String type)
public boolean canBurst()
public void updateMemory()
public void printDescription(java.lang.String type)
public void printOwner()
public void printHackDesc()
public void printRepairCost(boolean withPrompt)
public void printBurstCost(boolean withPrompt)
public void printSalvage()
public void printCost(java.lang.String type)
public java.lang.String[] getWormholeResources()
public int[] getWormholeQuantities()
public java.lang.String[] getResources()
public int[] getSalvageQuantities()
public int[] getQuantities()
public java.lang.String[] getRepairResources()
public int[] getRepairQuantities()
public int[] getBurstQuantities()
public java.lang.String[] getBurstResources()
public boolean hasWormholeAnchor()
public CargoAPI getWormholeAnchors()
public void selectWormholeAnchor()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.