Class DisposableFleetManager
java.lang.Object
com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager
com.fs.starfarer.api.impl.campaign.fleets.PlayerVisibleFleetManager
com.fs.starfarer.api.impl.campaign.fleets.DisposableFleetManager
- All Implemented Interfaces:
FleetEventListener
,EveryFrameScript
- Direct Known Subclasses:
DisposableHostileActivityFleetManager
,DisposableLuddicPathFleetManager
,DisposablePirateFleetManager
,DisposableThreatFleetManager
Picks a star system near the player meeting certain criteria and spawns certain types of fleets there,
but outside the player's vision.
Despawns them as soon as possible when a different star system is picked.
Copyright 2018 Fractal Softworks, LLC
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager
BaseLimitedFleetManager.ManagedFleetData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StarSystemAPI
static boolean
static final float
static final String
static final String
static final float
protected LinkedHashMap<String,
TimeoutTracker<Boolean>> protected float
protected IntervalUtil
Fields inherited from class com.fs.starfarer.api.impl.campaign.fleets.PlayerVisibleFleetManager
despawnTracker
Fields inherited from class com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager
active, log, tracker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRecentSpawn
(StarSystemAPI system) void
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.protected void
protected String
getActionInsideText
(StarSystemAPI system, CampaignFleetAPI fleet) protected String
getActionOutsideText
(StarSystemAPI system, CampaignFleetAPI fleet) protected abstract int
protected float
protected int
protected float
protected abstract String
protected String
getSpawnKey
(StarSystemAPI system) float
protected String
getTravelText
(StarSystemAPI system, CampaignFleetAPI fleet) protected boolean
protected StarSystemAPI
protected StarSystemAPI
protected Object
protected void
setLocationAndOrders
(CampaignFleetAPI fleet, float probStartInHyper, float probStayInHyper) protected abstract CampaignFleetAPI
protected void
protected boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.fleets.PlayerVisibleFleetManager
getHyperspaceCullRange, getInSystemCullRange, isVisibleToPlayer
Methods inherited from class com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager
getNextInterval, isDone, reportBattleOccurred, reportFleetDespawned, reportFleetDespawnedToListener, runWhilePaused
-
Field Details
-
DEBUG
public static boolean DEBUG -
KEY_SYSTEM
- See Also:
-
KEY_SPAWN_FP
- See Also:
-
MAX_RANGE_FROM_PLAYER_LY
public static final float MAX_RANGE_FROM_PLAYER_LY -
DESPAWN_RANGE_LY
public static final float DESPAWN_RANGE_LY -
tracker2
-
recentSpawns
-
spawnRateMult
protected float spawnRateMult -
currSpawnLoc
-
-
Constructor Details
-
DisposableFleetManager
public DisposableFleetManager()
-
-
Method Details
-
readResolve
- Overrides:
readResolve
in classPlayerVisibleFleetManager
-
getExpireDaysPerFleet
protected float getExpireDaysPerFleet() -
getSpawnKey
-
addRecentSpawn
-
getRecentSpawnsForSystem
-
getMaxFleets
protected int getMaxFleets()- Specified by:
getMaxFleets
in classBaseLimitedFleetManager
-
isOkToDespawnAssumingNotPlayerVisible
- Specified by:
isOkToDespawnAssumingNotPlayerVisible
in classPlayerVisibleFleetManager
-
getSpawnRateMult
public float getSpawnRateMult()- Overrides:
getSpawnRateMult
in classBaseLimitedFleetManager
-
currSpawnLocChanged
protected void currSpawnLocChanged() -
advance
public void advance(float amount) Description copied from interface:EveryFrameScript
Use SectorAPI.getClock() to convert to campaign days.- Specified by:
advance
in interfaceEveryFrameScript
- Overrides:
advance
in classPlayerVisibleFleetManager
- Parameters:
amount
- seconds elapsed during the last frame.
-
withReturnToSourceAssignments
protected boolean withReturnToSourceAssignments() -
getCurrSpawnLoc
-
updateSpawnRateMult
protected void updateSpawnRateMult() -
getDesiredNumFleetsForSpawnLocation
protected abstract int getDesiredNumFleetsForSpawnLocation() -
spawnFleetImpl
-
getSpawnId
-
pickCurrentSpawnLocation
-
pickNearestPopulatedSystem
-
spawnFleet
- Specified by:
spawnFleet
in classBaseLimitedFleetManager
-
getTravelText
-
getActionInsideText
-
getActionOutsideText
-
setLocationAndOrders
protected void setLocationAndOrders(CampaignFleetAPI fleet, float probStartInHyper, float probStayInHyper)
-