public abstract class BaseAssignmentAI extends java.lang.Object implements EveryFrameScript
| Modifier and Type | Class and Description |
|---|---|
static interface |
BaseAssignmentAI.FleetActionDelegate |
| Modifier and Type | Field and Description |
|---|---|
protected IntervalUtil |
buildTracker |
protected IntervalUtil |
capTracker |
protected BaseAssignmentAI.FleetActionDelegate |
delegate |
protected java.lang.Boolean |
done |
protected CampaignFleetAPI |
fleet |
protected java.lang.Boolean |
giveInitial |
protected IntervalUtil |
raidTracker |
static java.lang.String |
TEMP_ASSIGNMENT |
static java.lang.String |
TEMP_BUSY_REASON |
| Constructor and Description |
|---|
BaseAssignmentAI() |
BaseAssignmentAI(CampaignFleetAPI fleet) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
protected boolean |
canTakeAction() |
protected void |
checkBuild(float amount) |
protected void |
checkCapture(float amount) |
protected void |
checkColonyAction() |
protected void |
checkObjectiveAction(boolean build) |
protected void |
checkRaid(float amount) |
protected void |
clearTempAssignments(CampaignFleetAPI fleet) |
BaseAssignmentAI.FleetActionDelegate |
getDelegate() |
protected void |
giveBuildOrder(SectorEntityToken target,
java.lang.String type) |
protected void |
giveCaptureOrder(SectorEntityToken target) |
protected abstract void |
giveInitialAssignments() |
protected void |
giveRaidOrder(MarketAPI target) |
boolean |
isDone() |
protected abstract void |
pickNext() |
boolean |
runWhilePaused() |
void |
setDelegate(BaseAssignmentAI.FleetActionDelegate delegate) |
void |
setDone() |
protected CampaignFleetAPI fleet
protected java.lang.Boolean done
protected java.lang.Boolean giveInitial
protected BaseAssignmentAI.FleetActionDelegate delegate
protected IntervalUtil raidTracker
protected IntervalUtil capTracker
protected IntervalUtil buildTracker
public static java.lang.String TEMP_ASSIGNMENT
public static java.lang.String TEMP_BUSY_REASON
public BaseAssignmentAI()
public BaseAssignmentAI(CampaignFleetAPI fleet)
public BaseAssignmentAI.FleetActionDelegate getDelegate()
public void setDelegate(BaseAssignmentAI.FleetActionDelegate delegate)
protected abstract void giveInitialAssignments()
protected abstract void pickNext()
public void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptamount - seconds elapsed during the last frame.public boolean isDone()
isDone in interface EveryFrameScriptpublic void setDone()
public boolean runWhilePaused()
runWhilePaused in interface EveryFrameScriptprotected void checkRaid(float amount)
protected void checkCapture(float amount)
protected void checkBuild(float amount)
protected void checkObjectiveAction(boolean build)
protected void giveCaptureOrder(SectorEntityToken target)
protected void giveBuildOrder(SectorEntityToken target, java.lang.String type)
protected void clearTempAssignments(CampaignFleetAPI fleet)
protected boolean canTakeAction()
protected void checkColonyAction()
protected void giveRaidOrder(MarketAPI target)