public abstract class BaseRouteFleetManager extends java.lang.Object implements EveryFrameScript, RouteManager.RouteFleetSpawner
Modifier and Type | Field and Description |
---|---|
protected IntervalUtil |
interval |
Constructor and Description |
---|
BaseRouteFleetManager(float minInterval,
float maxInterval) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addRouteFleetIfPossible() |
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
protected abstract int |
getMaxFleets() |
protected abstract java.lang.String |
getRouteSourceId() |
boolean |
isDone() |
boolean |
runWhilePaused() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reportAboutToBeDespawnedByRouteManager, shouldCancelRouteAfterDelayCheck, shouldRepeat, spawnFleet
protected IntervalUtil interval
public BaseRouteFleetManager(float minInterval, float maxInterval)
protected abstract java.lang.String getRouteSourceId()
protected abstract int getMaxFleets()
protected abstract void addRouteFleetIfPossible()
public void advance(float amount)
EveryFrameScript
advance
in interface EveryFrameScript
amount
- seconds elapsed during the last frame.public boolean isDone()
isDone
in interface EveryFrameScript
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.