public abstract class DisposableFleetManager extends PlayerVisibleFleetManager
BaseLimitedFleetManager.ManagedFleetData| Modifier and Type | Field and Description |
|---|---|
protected StarSystemAPI |
currSpawnLoc |
static boolean |
DEBUG |
static float |
DESPAWN_RANGE_LY |
static java.lang.String |
KEY_SPAWN_FP |
static java.lang.String |
KEY_SYSTEM |
static float |
MAX_RANGE_FROM_PLAYER_LY |
protected java.util.LinkedHashMap<java.lang.String,TimeoutTracker<java.lang.Boolean>> |
recentSpawns |
protected float |
spawnRateMult |
protected IntervalUtil |
tracker2 |
despawnTrackeractive, log, tracker| Constructor and Description |
|---|
DisposableFleetManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRecentSpawn(StarSystemAPI system) |
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
protected void |
currSpawnLocChanged() |
protected java.lang.String |
getActionInsideText(StarSystemAPI system,
CampaignFleetAPI fleet) |
protected java.lang.String |
getActionOutsideText(StarSystemAPI system,
CampaignFleetAPI fleet) |
StarSystemAPI |
getCurrSpawnLoc() |
protected abstract int |
getDesiredNumFleetsForSpawnLocation() |
protected float |
getExpireDaysPerFleet() |
protected int |
getMaxFleets() |
protected float |
getRecentSpawnsForSystem(StarSystemAPI system) |
protected abstract java.lang.String |
getSpawnId() |
protected java.lang.String |
getSpawnKey(StarSystemAPI system) |
float |
getSpawnRateMult() |
protected java.lang.String |
getTravelText(StarSystemAPI system,
CampaignFleetAPI fleet) |
protected boolean |
isOkToDespawnAssumingNotPlayerVisible(CampaignFleetAPI fleet) |
protected StarSystemAPI |
pickCurrentSpawnLocation() |
protected StarSystemAPI |
pickNearestPopulatedSystem() |
protected java.lang.Object |
readResolve() |
protected void |
setLocationAndOrders(CampaignFleetAPI fleet,
float probStartInHyper,
float probStayInHyper) |
CampaignFleetAPI |
spawnFleet() |
protected abstract CampaignFleetAPI |
spawnFleetImpl() |
protected void |
updateSpawnRateMult() |
protected boolean |
withReturnToSourceAssignments() |
getHyperspaceCullRange, getInSystemCullRange, isVisibleToPlayergetNextInterval, isDone, reportBattleOccurred, reportFleetDespawned, reportFleetDespawnedToListener, runWhilePausedpublic static boolean DEBUG
public static final java.lang.String KEY_SYSTEM
public static final java.lang.String KEY_SPAWN_FP
public static final float MAX_RANGE_FROM_PLAYER_LY
public static final float DESPAWN_RANGE_LY
protected IntervalUtil tracker2
protected java.util.LinkedHashMap<java.lang.String,TimeoutTracker<java.lang.Boolean>> recentSpawns
protected float spawnRateMult
protected StarSystemAPI currSpawnLoc
public DisposableFleetManager()
protected java.lang.Object readResolve()
readResolve in class PlayerVisibleFleetManagerprotected float getExpireDaysPerFleet()
protected java.lang.String getSpawnKey(StarSystemAPI system)
protected void addRecentSpawn(StarSystemAPI system)
protected float getRecentSpawnsForSystem(StarSystemAPI system)
protected int getMaxFleets()
getMaxFleets in class BaseLimitedFleetManagerprotected boolean isOkToDespawnAssumingNotPlayerVisible(CampaignFleetAPI fleet)
isOkToDespawnAssumingNotPlayerVisible in class PlayerVisibleFleetManagerpublic float getSpawnRateMult()
getSpawnRateMult in class BaseLimitedFleetManagerprotected void currSpawnLocChanged()
public void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptadvance in class PlayerVisibleFleetManageramount - seconds elapsed during the last frame.protected boolean withReturnToSourceAssignments()
public StarSystemAPI getCurrSpawnLoc()
protected void updateSpawnRateMult()
protected abstract int getDesiredNumFleetsForSpawnLocation()
protected abstract CampaignFleetAPI spawnFleetImpl()
protected abstract java.lang.String getSpawnId()
protected StarSystemAPI pickCurrentSpawnLocation()
protected StarSystemAPI pickNearestPopulatedSystem()
public CampaignFleetAPI spawnFleet()
spawnFleet in class BaseLimitedFleetManagerprotected java.lang.String getTravelText(StarSystemAPI system, CampaignFleetAPI fleet)
protected java.lang.String getActionInsideText(StarSystemAPI system, CampaignFleetAPI fleet)
protected java.lang.String getActionOutsideText(StarSystemAPI system, CampaignFleetAPI fleet)
protected void setLocationAndOrders(CampaignFleetAPI fleet, float probStartInHyper, float probStayInHyper)