Class FleetParamsV3

java.lang.Object
com.fs.starfarer.api.impl.campaign.fleets.FleetParamsV3

public class FleetParamsV3 extends Object
Parameters for generic fleet creation. Fleet point values are targets not hard limits. "Pts" are fleet points in this implementation, unlike FleetFactoryV2.
Author:
Alex Mosolov Copyright 2015 Fractal Softworks, LLC
  • Field Details

    • source

      public MarketAPI source
      Use setSource() to set the source or directly call updateQualityAndProducerFromSourceMarket() to set the quality. Otherwise, the market's quality won't get used.
    • locInHyper

      public org.lwjgl.util.vector.Vector2f locInHyper
    • quality

      public float quality
    • factionId

      public String factionId
    • fleetType

      public String fleetType
    • combatPts

      public float combatPts
    • freighterPts

      public float freighterPts
    • tankerPts

      public float tankerPts
    • transportPts

      public float transportPts
    • linerPts

      public float linerPts
    • utilityPts

      public float utilityPts
    • factionOverride

      public FactionAPI factionOverride
    • maxShipSize

      public int maxShipSize
      0: fighter, 4: capital
    • minShipSize

      public int minShipSize
      0: fighter, 4: capital, only affects combat ships; smaller ships will still be added with remaining fleet points.
    • qualityMod

      public float qualityMod
    • qualityOverride

      public Float qualityOverride
    • averageSMods

      public Integer averageSMods
    • withOfficers

      public boolean withOfficers
    • ignoreMarketFleetSizeMult

      public Boolean ignoreMarketFleetSizeMult
    • onlyApplyFleetSizeToCombatShips

      public Boolean onlyApplyFleetSizeToCombatShips
    • doNotPrune

      public Boolean doNotPrune
    • doNotAddShipsBeforePruning

      public Boolean doNotAddShipsBeforePruning
    • modeOverride

      public FactionAPI.ShipPickMode modeOverride
    • officerLevelBonus

      public int officerLevelBonus
    • officerNumberBonus

      public int officerNumberBonus
    • maxOfficersToAdd

      public Integer maxOfficersToAdd
    • officerNumberMult

      public float officerNumberMult
    • officerLevelLimit

      public int officerLevelLimit
    • commanderLevelLimit

      public int commanderLevelLimit
    • random

      public Random random
    • commander

      public PersonAPI commander
    • noCommanderSkills

      public Boolean noCommanderSkills
    • forceAllowPhaseShipsEtc

      public Boolean forceAllowPhaseShipsEtc
    • treatCombatFreighterSettingAsFraction

      public Boolean treatCombatFreighterSettingAsFraction
    • doctrineOverride

      public FactionDoctrineAPI doctrineOverride
    • timestamp

      public Long timestamp
    • maxNumShips

      public Integer maxNumShips
    • onlyRetainFlagship

      public Boolean onlyRetainFlagship
    • flagshipVariantId

      public String flagshipVariantId
    • flagshipVariant

      public ShipVariantAPI flagshipVariant
    • aiCores

    • doNotIntegrateAICores

      public boolean doNotIntegrateAICores
    • mode

      public transient FactionAPI.ShipPickMode mode
    • banPhaseShipsEtc

      public transient boolean banPhaseShipsEtc
    • blockFallback

      public transient Boolean blockFallback
    • allWeapons

      public Boolean allWeapons
    • addShips

      public List<String> addShips
      If non-null: these ship variants will be added to the fleet before anything else
  • Constructor Details

    • FleetParamsV3

      public FleetParamsV3(MarketAPI source, org.lwjgl.util.vector.Vector2f locInHyper, String factionId, Float qualityOverride, String fleetType, float combatPts, float freighterPts, float tankerPts, float transportPts, float linerPts, float utilityPts, float qualityMod)
    • FleetParamsV3

      public FleetParamsV3()
    • FleetParamsV3

      public FleetParamsV3(org.lwjgl.util.vector.Vector2f locInHyper, String factionId, Float qualityOverride, String fleetType, float combatPts, float freighterPts, float tankerPts, float transportPts, float linerPts, float utilityPts, float qualityMod)
    • FleetParamsV3

      public FleetParamsV3(MarketAPI source, String fleetType, float combatPts, float freighterPts, float tankerPts, float transportPts, float linerPts, float utilityPts, float qualityMod)
  • Method Details

    • init

      public void init(MarketAPI source, String fleetType, String factionId, float combatPts, float freighterPts, float tankerPts, float transportPts, float linerPts, float utilityPts, float qualityMod)
    • init

      public void init(org.lwjgl.util.vector.Vector2f locInHyper, String factionId, Float qualityOverride, String fleetType, float combatPts, float freighterPts, float tankerPts, float transportPts, float linerPts, float utilityPts, float qualityMod)
    • setSource

      public void setSource(MarketAPI source, boolean updateQuality)
    • updateQualityAndProducerFromSourceMarket

      public void updateQualityAndProducerFromSourceMarket()
    • getTotalPts

      public float getTotalPts()