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)
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
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener
in interface FleetEventListener
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListener
reportBattleOccurred
in interface FleetEventListener
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.