Class RemnantThemeGenerator
java.lang.Object
com.fs.starfarer.api.impl.campaign.procgen.themes.BaseThemeGenerator
com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantThemeGenerator
- All Implemented Interfaces:
ThemeGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
Nested classes/interfaces inherited from class com.fs.starfarer.api.impl.campaign.procgen.themes.BaseThemeGenerator
BaseThemeGenerator.AddedEntity, BaseThemeGenerator.EntityLocation, BaseThemeGenerator.HabitationLevel, BaseThemeGenerator.LocationType, BaseThemeGenerator.OrbitGap, BaseThemeGenerator.OrbitItem, BaseThemeGenerator.StarSystemData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static final int
static final int
Fields inherited from class com.fs.starfarer.api.impl.campaign.procgen.themes.BaseThemeGenerator
DEBUG, NOT_HABITABLE_PLANET_PROB, ORBITAL_HABITAT_PROB, random
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBattlestations
(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> stationTypes) static CustomCampaignEntityAPI
addBeacon
(StarSystemAPI system, RemnantThemeGenerator.RemnantSystemType type) void
addDefenders
(List<BaseThemeGenerator.StarSystemData> systemData) static void
static boolean
void
generateForSector
(ThemeGenContext context, float allowedUnusedFraction) float
int
getOrder()
Themes with lower "order" values get their shot at generating content first.protected List<Constellation>
getSortedAvailableConstellations
(ThemeGenContext context, boolean emptyOk, org.lwjgl.util.vector.Vector2f sortFrom, List<Constellation> exclude) Sorted by *descending* distance from sortFrom.void
void
static boolean
systemIsEmpty
(StarSystemAPI system) Methods inherited from class com.fs.starfarer.api.impl.campaign.procgen.themes.BaseThemeGenerator
addCaches, addCommRelay, addDebrisField, addDebrisFields, addDebrisFields, addDerelictShip, addDerelictShip, addDerelictShips, addEntity, addEntity, addEntityAutoDetermineType, addHabCenters, addInactiveGate, addMiningStations, addNonSalvageEntity, addObjectives, addResearchStations, addRuins, addSalvageEntity, addSalvageEntity, addSalvageEntity, addSalvageEntity, addShipGraveyard, addShipGraveyard, addShipGraveyard, addStation, clearRuins, computeSystemData, convertOrbitNoSpin, convertOrbitNoSpin, convertOrbitPointingDown, convertOrbitWithSpin, createLocationAtRandomGap, createStringPicker, createStringPicker, findGaps, genCargoFromDrop, getInnerRadius, getLocations, getLocations, getObjectiveSpec, getOrbitalRadius, getOuterRadius, getRandom, getWeight, isAreaEmpty, pickAnyLocation, pickCommonLocation, pickHiddenLocation, pickHiddenLocationNotNearStar, pickOuterEntityToSpawnNear, pickRuinsType, pickUncommonLocation, setEntityLocation, setRandom, shouldHaveDecivilized
-
Field Details
-
MIN_CONSTELLATIONS_WITH_REMNANTS
public static final int MIN_CONSTELLATIONS_WITH_REMNANTS- See Also:
-
MAX_CONSTELLATIONS_WITH_REMNANTS
public static final int MAX_CONSTELLATIONS_WITH_REMNANTS- See Also:
-
CONSTELLATION_SKIP_PROB
public static float CONSTELLATION_SKIP_PROB
-
-
Constructor Details
-
RemnantThemeGenerator
public RemnantThemeGenerator()
-
-
Method Details
-
getThemeId
- Specified by:
getThemeId
in interfaceThemeGenerator
- Specified by:
getThemeId
in classBaseThemeGenerator
-
generateForSector
- Specified by:
generateForSector
in interfaceThemeGenerator
- Specified by:
generateForSector
in classBaseThemeGenerator
-
addDefenders
-
populateNonMain
-
populateMain
public void populateMain(BaseThemeGenerator.StarSystemData data, RemnantThemeGenerator.RemnantSystemType type) -
getSortedSystemsSuitedToBePopulated
public List<BaseThemeGenerator.StarSystemData> getSortedSystemsSuitedToBePopulated(List<BaseThemeGenerator.StarSystemData> systems) -
getMainCenterScore
-
addBeacon
public static CustomCampaignEntityAPI addBeacon(StarSystemAPI system, RemnantThemeGenerator.RemnantSystemType type) -
getSortedAvailableConstellations
protected List<Constellation> getSortedAvailableConstellations(ThemeGenContext context, boolean emptyOk, org.lwjgl.util.vector.Vector2f sortFrom, List<Constellation> exclude) Sorted by *descending* distance from sortFrom.- Overrides:
getSortedAvailableConstellations
in classBaseThemeGenerator
- Parameters:
context
-sortFrom
-- Returns:
-
constellationIsEmpty
-
systemIsEmpty
-
addBattlestations
public List<CampaignFleetAPI> addBattlestations(BaseThemeGenerator.StarSystemData data, float chanceToAddAny, int min, int max, WeightedRandomPicker<String> stationTypes) -
addRemnantStationInteractionConfig
-
getOrder
public int getOrder()Description copied from interface:ThemeGenerator
Themes with lower "order" values get their shot at generating content first.- Specified by:
getOrder
in interfaceThemeGenerator
- Specified by:
getOrder
in classBaseThemeGenerator
- Returns:
-