public abstract class SeededFleetManager extends java.lang.Object implements FleetEventListener, EveryFrameScript
| Modifier and Type | Class and Description |
|---|---|
static class |
SeededFleetManager.SeededFleet |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static float |
DESPAWN_PAD_LY |
protected java.util.List<SeededFleetManager.SeededFleet> |
fleets |
protected float |
inflateRangeLY |
protected StarSystemAPI |
system |
| Constructor and Description |
|---|
SeededFleetManager(StarSystemAPI system,
float inflateRangeLY) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSeed(long seed) |
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
float |
getInflateRangeLY() |
StarSystemAPI |
getSystem() |
boolean |
isDone() |
void |
reportBattleOccurred(CampaignFleetAPI fleet,
CampaignFleetAPI primaryWinner,
BattleAPI battle)
"fleet" will be null if the listener is registered with the ListenerManager, and non-null
if the listener is added directly to a fleet.
|
void |
reportFleetDespawnedToListener(CampaignFleetAPI fleet,
CampaignEventListener.FleetDespawnReason reason,
java.lang.Object param) |
boolean |
runWhilePaused() |
protected abstract CampaignFleetAPI |
spawnFleet(long seed) |
public static float DESPAWN_PAD_LY
protected java.util.List<SeededFleetManager.SeededFleet> fleets
protected float inflateRangeLY
protected StarSystemAPI system
public static boolean DEBUG
public SeededFleetManager(StarSystemAPI system, float inflateRangeLY)
public void addSeed(long seed)
public float getInflateRangeLY()
public StarSystemAPI getSystem()
protected abstract CampaignFleetAPI spawnFleet(long seed)
public void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptamount - seconds elapsed during the last frame.public boolean isDone()
isDone in interface EveryFrameScriptpublic boolean runWhilePaused()
runWhilePaused in interface EveryFrameScriptpublic void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener in interface FleetEventListenerpublic void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListenerreportBattleOccurred in interface FleetEventListener