Class MiscellaneousThemeGenerator
java.lang.Object
com.fs.starfarer.api.impl.campaign.procgen.themes.BaseThemeGenerator
com.fs.starfarer.api.impl.campaign.procgen.themes.MiscellaneousThemeGenerator
- All Implemented Interfaces:
ThemeGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
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 String
static String
static String
static String
static String
static String
static String
static String
static int
static int
static int
static String
static String
static String
static String
static String
static String
static float
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 TypeMethodDescriptionprotected BaseThemeGenerator.AddedEntity
addCoronalTap
(StarSystemAPI system) protected void
addCoronalTaps
(ThemeGenContext context) protected void
addDerelicts
(ThemeGenContext context, String variant, int minNonSalvageable, int maxNonSalvageable, int minSalvageable, int maxSalvageable, String... allowedThemes) protected void
addExtraGates
(ThemeGenContext context) protected void
addLOCRLuddicPlanet
(ThemeGenContext context) protected void
addLOCRMinersPlanet
(ThemeGenContext context) protected void
addLOCRPiratePlanet
(ThemeGenContext context) protected void
addPKSystem
(ThemeGenContext context) protected void
addRedPlanet
(ThemeGenContext context) protected void
addSolarShadesAndMirrors
(ThemeGenContext context) void
generateForSector
(ThemeGenContext context, float allowedUnusedFraction) int
getOrder()
Themes with lower "order" values get their shot at generating content first.static List<CampaignFleetAPI>
getRemnantStations
(boolean includeDamaged, boolean onlyDamaged) float
What fraction of the Sector this theme wants to be used for, relative to other themes.static void
makeDiscoverable
(SectorEntityToken entity, float xp, float sensorProfile) void
protected void
setUpPKSystem
(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, constellationIsEmpty, convertOrbitNoSpin, convertOrbitNoSpin, convertOrbitPointingDown, convertOrbitWithSpin, createLocationAtRandomGap, createStringPicker, createStringPicker, findGaps, genCargoFromDrop, getInnerRadius, getLocations, getLocations, getObjectiveSpec, getOrbitalRadius, getOuterRadius, getRandom, getSortedAvailableConstellations, isAreaEmpty, pickAnyLocation, pickCommonLocation, pickHiddenLocation, pickHiddenLocationNotNearStar, pickOuterEntityToSpawnNear, pickRuinsType, pickUncommonLocation, setEntityLocation, setRandom, shouldHaveDecivilized, systemIsEmpty
-
Field Details
-
PK_SYSTEM_KEY
-
PK_PLANET_KEY
-
PK_CACHE_KEY
-
PK_NEXUS_KEY
-
PLANETARY_SHIELD_PLANET_KEY
-
PLANETARY_SHIELD_PLANET
-
LOCR_BLOCK_FIRST_SURVEY
-
LOCR_LUDDIC_PLANET_KEY
-
LOCR_LUDDIC_TRANSPORT_KEY
-
LOCR_LUDDIC
-
LOCR_MINERS_PLANET_KEY
-
LOCR_MINERS
-
LOCR_PIRATE_PLANET_KEY
-
LOCR_PIRATE
-
PROB_TO_ADD_SOMETHING
public static float PROB_TO_ADD_SOMETHING -
MIN_GATES
public static int MIN_GATES -
MAX_GATES
public static int MAX_GATES -
MIN_GATES_TO_ADD
public static int MIN_GATES_TO_ADD
-
-
Constructor Details
-
MiscellaneousThemeGenerator
public MiscellaneousThemeGenerator()
-
-
Method Details
-
getThemeId
- Specified by:
getThemeId
in interfaceThemeGenerator
- Specified by:
getThemeId
in classBaseThemeGenerator
-
getWeight
public float getWeight()Description copied from interface:ThemeGenerator
What fraction of the Sector this theme wants to be used for, relative to other themes. The fraction it gets is weight / (total weight of all themes). Base value is 100.- Specified by:
getWeight
in interfaceThemeGenerator
- Overrides:
getWeight
in classBaseThemeGenerator
- Returns:
-
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:
-
generateForSector
- Specified by:
generateForSector
in interfaceThemeGenerator
- Specified by:
generateForSector
in classBaseThemeGenerator
-
addRedPlanet
-
addDerelicts
protected void addDerelicts(ThemeGenContext context, String variant, int minNonSalvageable, int maxNonSalvageable, int minSalvageable, int maxSalvageable, String... allowedThemes) -
addSolarShadesAndMirrors
-
makeDiscoverable
-
populateNonMain
-
addExtraGates
-
addCoronalTaps
-
addCoronalTap
-
addPKSystem
-
setUpPKSystem
-
addLOCRLuddicPlanet
-
addLOCRMinersPlanet
-
addLOCRPiratePlanet
-
getRemnantStations
public static List<CampaignFleetAPI> getRemnantStations(boolean includeDamaged, boolean onlyDamaged)
-