Class RemnantStationFleetManager
java.lang.Object
com.fs.starfarer.api.impl.campaign.fleets.SourceBasedFleetManager
com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantStationFleetManager
- All Implemented Interfaces:
FleetEventListener
,EveryFrameScript
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected int
protected int
protected int
Fields inherited from class com.fs.starfarer.api.impl.campaign.fleets.SourceBasedFleetManager
DEBUG, DESPAWN_MIN_DIST_LY, DESPAWN_THRESHOLD_PAD_LY, destroyed, fleets, maxFleets, minFleets, respawnDelay, source, sourceLocation, thresholdLY
-
Constructor Summary
ConstructorsConstructorDescriptionRemnantStationFleetManager
(SectorEntityToken source, float thresholdLY, int minFleets, int maxFleets, float respawnDelay, int minPts, int maxPts) -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.int
protected Object
void
reportFleetDespawnedToListener
(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) protected CampaignFleetAPI
Methods inherited from class com.fs.starfarer.api.impl.campaign.fleets.SourceBasedFleetManager
getSource, getThresholdLY, isDone, reportBattleOccurred, runWhilePaused, setDone
-
Field Details
-
minPts
protected int minPts -
maxPts
protected int maxPts -
totalLost
protected int totalLost -
epGen
-
addedListener
protected transient boolean addedListener
-
-
Constructor Details
-
RemnantStationFleetManager
public RemnantStationFleetManager(SectorEntityToken source, float thresholdLY, int minFleets, int maxFleets, float respawnDelay, int minPts, int maxPts)
-
-
Method Details
-
readResolve
-
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 classSourceBasedFleetManager
- Parameters:
amount
- seconds elapsed during the last frame.
-
spawnFleet
- Specified by:
spawnFleet
in classSourceBasedFleetManager
-
reportFleetDespawnedToListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) - Specified by:
reportFleetDespawnedToListener
in interfaceFleetEventListener
- Overrides:
reportFleetDespawnedToListener
in classSourceBasedFleetManager
-
getTotalLost
public int getTotalLost()
-