public class DistressCallNormalAssignmentAI extends BaseAssignmentAI
BaseAssignmentAI.FleetActionDelegate
Modifier and Type | Field and Description |
---|---|
protected boolean |
contactedPlayer |
protected float |
dur |
protected float |
elapsed |
protected SectorEntityToken |
jumpPoint |
protected StarSystemAPI |
system |
buildTracker, capTracker, delegate, done, fleet, giveInitial, raidTracker, TEMP_ASSIGNMENT, TEMP_BUSY_REASON
Constructor and Description |
---|
DistressCallNormalAssignmentAI(CampaignFleetAPI fleet,
StarSystemAPI system,
SectorEntityToken jumpPoint) |
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
protected void |
giveInitialAssignments() |
static void |
leaveCrewInPods(CampaignFleetAPI fleet,
int crew) |
protected void |
pickNext() |
static void |
scuttleShips(CampaignFleetAPI fleet,
int crewFreed) |
static void |
undistress(SectorEntityToken fleet) |
canTakeAction, checkBuild, checkCapture, checkColonyAction, checkObjectiveAction, checkRaid, clearTempAssignments, getDelegate, giveBuildOrder, giveCaptureOrder, giveRaidOrder, isDone, runWhilePaused, setDelegate, setDone
protected StarSystemAPI system
protected SectorEntityToken jumpPoint
protected float elapsed
protected float dur
protected boolean contactedPlayer
public DistressCallNormalAssignmentAI(CampaignFleetAPI fleet, StarSystemAPI system, SectorEntityToken jumpPoint)
protected void giveInitialAssignments()
giveInitialAssignments
in class BaseAssignmentAI
protected void pickNext()
pickNext
in class BaseAssignmentAI
public void advance(float amount)
EveryFrameScript
advance
in interface EveryFrameScript
advance
in class BaseAssignmentAI
amount
- seconds elapsed during the last frame.public static void leaveCrewInPods(CampaignFleetAPI fleet, int crew)
public static void undistress(SectorEntityToken fleet)
public static void scuttleShips(CampaignFleetAPI fleet, int crewFreed)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.