public class TriggerFleetAssignmentAI extends java.lang.Object implements EveryFrameScript
Modifier and Type | Field and Description |
---|---|
protected SectorEntityToken |
currTarget |
protected float |
elapsedWaitingForDespawn |
protected CampaignFleetAPI |
fleet |
protected HubMission |
mission |
protected java.util.List<SectorEntityToken> |
patrolPoints |
protected java.lang.String |
patrolText |
protected LocationAPI |
system |
protected java.lang.String |
travelText |
Constructor and Description |
---|
TriggerFleetAssignmentAI(java.lang.String travelText,
java.lang.String patrolText,
HubMission mission,
LocationAPI system,
boolean randomLocation,
CampaignFleetAPI fleet,
SectorEntityToken... patrolPoints) |
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
protected void |
giveInitialAssignments(boolean randomLocation) |
boolean |
isDone() |
boolean |
isMissionEnded() |
protected void |
pickNext() |
protected SectorEntityToken |
pickPatrolPoint() |
boolean |
runWhilePaused() |
protected CampaignFleetAPI fleet
protected LocationAPI system
protected java.util.List<SectorEntityToken> patrolPoints
protected float elapsedWaitingForDespawn
protected HubMission mission
protected java.lang.String patrolText
protected java.lang.String travelText
protected SectorEntityToken currTarget
public TriggerFleetAssignmentAI(java.lang.String travelText, java.lang.String patrolText, HubMission mission, LocationAPI system, boolean randomLocation, CampaignFleetAPI fleet, SectorEntityToken... patrolPoints)
protected void giveInitialAssignments(boolean randomLocation)
protected SectorEntityToken pickPatrolPoint()
protected void pickNext()
public void advance(float amount)
EveryFrameScript
advance
in interface EveryFrameScript
amount
- seconds elapsed during the last frame.public boolean isMissionEnded()
public boolean isDone()
isDone
in interface EveryFrameScript
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.