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 |
despawnTracker
active, 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 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() |
getHyperspaceCullRange, getInSystemCullRange, isVisibleToPlayer
getNextInterval, isDone, reportBattleOccurred, reportFleetDespawned, reportFleetDespawnedToListener, runWhilePaused
public 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
protected java.lang.Object readResolve()
readResolve
in class PlayerVisibleFleetManager
protected 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 BaseLimitedFleetManager
protected boolean isOkToDespawnAssumingNotPlayerVisible(CampaignFleetAPI fleet)
isOkToDespawnAssumingNotPlayerVisible
in class PlayerVisibleFleetManager
public float getSpawnRateMult()
getSpawnRateMult
in class BaseLimitedFleetManager
public void advance(float amount)
EveryFrameScript
advance
in interface EveryFrameScript
advance
in class PlayerVisibleFleetManager
amount
- seconds elapsed during the last frame.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 BaseLimitedFleetManager
protected 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)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.