Class RuinsThemeGenerator
java.lang.Object
com.fs.starfarer.api.impl.campaign.procgen.themes.BaseThemeGenerator
com.fs.starfarer.api.impl.campaign.procgen.themes.RuinsThemeGenerator
- All Implemented Interfaces:
ThemeGenerator
-
Nested Class Summary
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 TypeMethodDescriptionstatic 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_RUINS
public static final int MIN_CONSTELLATIONS_WITH_RUINS- See Also:
-
MAX_CONSTELLATIONS_WITH_RUINS
public static final int MAX_CONSTELLATIONS_WITH_RUINS- See Also:
-
CONSTELLATION_SKIP_PROB
public static float CONSTELLATION_SKIP_PROB
-
-
Constructor Details
-
RuinsThemeGenerator
public RuinsThemeGenerator()
-
-
Method Details
-
getThemeId
- Specified by:
getThemeId
in interfaceThemeGenerator
- Specified by:
getThemeId
in classBaseThemeGenerator
-
generateForSector
- Specified by:
generateForSector
in interfaceThemeGenerator
- Specified by:
generateForSector
in classBaseThemeGenerator
-
populateNonMain
-
populateMain
-
getSortedSystemsSuitedToBePopulated
public List<BaseThemeGenerator.StarSystemData> getSortedSystemsSuitedToBePopulated(List<BaseThemeGenerator.StarSystemData> systems) -
getMainCenterScore
-
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
-
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:
-