Class SourceBasedFleetManager

java.lang.Object
com.fs.starfarer.api.impl.campaign.fleets.SourceBasedFleetManager
All Implemented Interfaces:
FleetEventListener, EveryFrameScript
Direct Known Subclasses:
RemnantStationFleetManager, RogueMinerMiscFleetManager

public abstract class SourceBasedFleetManager extends Object implements FleetEventListener, EveryFrameScript
Up to a configurable number of fleets. Instant despawn when player is far enough. New fleets generated after respawnDelay if some are destroyed.
Author:
Alex Mosolov Copyright 2017 Fractal Softworks, LLC
  • Field Details

    • DESPAWN_THRESHOLD_PAD_LY

      public static float DESPAWN_THRESHOLD_PAD_LY
    • DESPAWN_MIN_DIST_LY

      public static float DESPAWN_MIN_DIST_LY
    • fleets

      protected List<CampaignFleetAPI> fleets
    • thresholdLY

      protected float thresholdLY
    • source

      protected SectorEntityToken source
    • DEBUG

      public static boolean DEBUG
    • minFleets

      protected int minFleets
    • maxFleets

      protected int maxFleets
    • respawnDelay

      protected float respawnDelay
    • destroyed

      protected float destroyed
    • sourceLocation

      protected org.lwjgl.util.vector.Vector2f sourceLocation
  • Constructor Details

    • SourceBasedFleetManager

      public SourceBasedFleetManager(SectorEntityToken source, float thresholdLY, int minFleets, int maxFleets, float respawnDelay)
  • Method Details