Class FleetParamsV3
java.lang.Object
com.fs.starfarer.api.impl.campaign.fleets.FleetParamsV3
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 Summary
FieldsModifier and TypeFieldDescriptionIf non-null: these ship variants will be added to the fleet before anything elseboolean
float
int
boolean
float
float
org.lwjgl.util.vector.Vector2f
int
0: fighter, 4: capitalint
0: fighter, 4: capital, only affects combat ships; smaller ships will still be added with remaining fleet points.int
int
int
float
float
float
Use setSource() to set the source or directly call updateQualityAndProducerFromSourceMarket() to set the quality.float
float
float
boolean
-
Constructor Summary
ConstructorsConstructorDescriptionFleetParamsV3
(MarketAPI source, String fleetType, float combatPts, float freighterPts, float tankerPts, float transportPts, float linerPts, float utilityPts, float qualityMod) 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
(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) -
Method Summary
Modifier and TypeMethodDescriptionfloat
void
init
(MarketAPI source, String fleetType, String factionId, float combatPts, float freighterPts, float tankerPts, float transportPts, float linerPts, float utilityPts, float qualityMod) 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) void
void
-
Field Details
-
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
-
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
-
maxShipSize
public int maxShipSize0: fighter, 4: capital -
minShipSize
public int minShipSize0: fighter, 4: capital, only affects combat ships; smaller ships will still be added with remaining fleet points. -
qualityMod
public float qualityMod -
qualityOverride
-
averageSMods
-
withOfficers
public boolean withOfficers -
ignoreMarketFleetSizeMult
-
onlyApplyFleetSizeToCombatShips
-
doNotPrune
-
doNotAddShipsBeforePruning
-
modeOverride
-
officerLevelBonus
public int officerLevelBonus -
officerNumberBonus
public int officerNumberBonus -
maxOfficersToAdd
-
officerNumberMult
public float officerNumberMult -
officerLevelLimit
public int officerLevelLimit -
commanderLevelLimit
public int commanderLevelLimit -
random
-
commander
-
noCommanderSkills
-
forceAllowPhaseShipsEtc
-
treatCombatFreighterSettingAsFraction
-
doctrineOverride
-
timestamp
-
maxNumShips
-
onlyRetainFlagship
-
flagshipVariantId
-
flagshipVariant
-
aiCores
-
doNotIntegrateAICores
public boolean doNotIntegrateAICores -
mode
-
banPhaseShipsEtc
public transient boolean banPhaseShipsEtc -
blockFallback
-
allWeapons
-
addShips
If non-null: these ship variants will be added to the fleet before anything else
-
-
Constructor Details
-
FleetParamsV3
-
FleetParamsV3
public FleetParamsV3() -
FleetParamsV3
-
FleetParamsV3
-
-
Method Details
-
init
-
init
-
setSource
-
updateQualityAndProducerFromSourceMarket
public void updateQualityAndProducerFromSourceMarket() -
getTotalPts
public float getTotalPts()
-