Class DisposableThreatFleetManager
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
com.fs.starfarer.api.impl.combat.threat.DisposableThreatFleetManager
- All Implemented Interfaces:
CurrentLocationChangedListener
,FleetEventListener
,EveryFrameScript
public class DisposableThreatFleetManager
extends DisposableFleetManager
implements CurrentLocationChangedListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
Nested classes/interfaces inherited from class com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager
BaseLimitedFleetManager.ManagedFleetData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
static int
static int
static float
static String
In $player memory.static float
static String
Fields inherited from class com.fs.starfarer.api.impl.campaign.fleets.DisposableFleetManager
currSpawnLoc, DEBUG, DESPAWN_RANGE_LY, KEY_SPAWN_FP, KEY_SYSTEM, MAX_RANGE_FROM_PLAYER_LY, recentSpawns, spawnRateMult, tracker2
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 TypeMethodDescriptionstatic void
addShips
(CampaignFleetAPI fleet, int num, String role, Random random) void
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.static CampaignFleetAPI
createThreatFleet
(int numFabricators, int minOtherCapitals, int maxOtherCapitals, DisposableThreatFleetManager.FabricatorEscortStrength escorts, Random random) static CampaignFleetAPI
protected int
protected float
protected String
protected StarSystemAPI
protected Object
void
reportCurrentLocationChanged
(LocationAPI prev, LocationAPI curr) protected CampaignFleetAPI
protected boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.fleets.DisposableFleetManager
addRecentSpawn, currSpawnLocChanged, getActionInsideText, getActionOutsideText, getCurrSpawnLoc, getMaxFleets, getRecentSpawnsForSystem, getSpawnKey, getSpawnRateMult, getTravelText, isOkToDespawnAssumingNotPlayerVisible, pickNearestPopulatedSystem, setLocationAndOrders, spawnFleet, updateSpawnRateMult
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
-
DEPTH_0
public static float DEPTH_0 -
DEPTH_1
public static float DEPTH_1 -
DEPTH_2
public static float DEPTH_2 -
SENSOR_MODS_KEY
In $player memory. -
THREAT_DETECTED_RANGE_MULT_ID
-
THREAT_DETECTED_RANGE_MULT
public static float THREAT_DETECTED_RANGE_MULT -
ONSLAUGHT_MKI_SENSOR_MODIFICATIONS_RANGE_MULT
public static float ONSLAUGHT_MKI_SENSOR_MODIFICATIONS_RANGE_MULT -
MIN_FLEETS
public static int MIN_FLEETS -
MAX_FLEETS
public static int MAX_FLEETS
-
-
Constructor Details
-
DisposableThreatFleetManager
public DisposableThreatFleetManager()
-
-
Method Details
-
readResolve
- Overrides:
readResolve
in classDisposableFleetManager
-
getSpawnId
- Specified by:
getSpawnId
in classDisposableFleetManager
-
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 classDisposableFleetManager
- Parameters:
amount
- seconds elapsed during the last frame.
-
reportCurrentLocationChanged
- Specified by:
reportCurrentLocationChanged
in interfaceCurrentLocationChangedListener
-
getExpireDaysPerFleet
protected float getExpireDaysPerFleet()- Overrides:
getExpireDaysPerFleet
in classDisposableFleetManager
-
getDesiredNumFleetsForSpawnLocation
protected int getDesiredNumFleetsForSpawnLocation()- Specified by:
getDesiredNumFleetsForSpawnLocation
in classDisposableFleetManager
-
withReturnToSourceAssignments
protected boolean withReturnToSourceAssignments()- Overrides:
withReturnToSourceAssignments
in classDisposableFleetManager
-
pickCurrentSpawnLocation
- Overrides:
pickCurrentSpawnLocation
in classDisposableFleetManager
-
spawnFleetImpl
- Specified by:
spawnFleetImpl
in classDisposableFleetManager
-
createThreatFleet
public static CampaignFleetAPI createThreatFleet(int numFabricators, int minOtherCapitals, int maxOtherCapitals, DisposableThreatFleetManager.FabricatorEscortStrength escorts, Random random) -
createThreatFleet
public static CampaignFleetAPI createThreatFleet(DisposableThreatFleetManager.ThreatFleetCreationParams params, Random random) -
addShips
-