public class DerelictThemeGenerator extends BaseThemeGenerator
Modifier and Type | Class and Description |
---|---|
static class |
DerelictThemeGenerator.SystemGenData |
BaseThemeGenerator.AddedEntity, BaseThemeGenerator.EntityLocation, BaseThemeGenerator.HabitationLevel, BaseThemeGenerator.LocationType, BaseThemeGenerator.OrbitGap, BaseThemeGenerator.OrbitItem, BaseThemeGenerator.StarSystemData
Modifier and Type | Field and Description |
---|---|
static float |
BASE_LINK_FRACTION |
static int |
BRANCHES_PER_MOTHERSHIP_MAX |
static int |
BRANCHES_PER_MOTHERSHIP_MIN |
static int |
BRANCHES_PER_SHIP_MAX |
static int |
BRANCHES_PER_SHIP_MIN |
static java.util.Set<java.lang.String> |
interestingConditions |
static java.util.Set<java.lang.String> |
interestingConditionsWithoutHabitable |
static java.util.Set<java.lang.String> |
interestingConditionsWithRuins |
static float |
SALVAGE_SPECIAL_FRACTION |
static float |
TOPOGRAPHIC_DATA_FRACTION |
DEBUG, NOT_HABITABLE_PLANET_PROB, ORBITAL_HABITAT_PROB, random
Constructor and Description |
---|
DerelictThemeGenerator() |
Modifier and Type | Method and Description |
---|---|
protected BaseThemeGenerator.AddedEntity |
addCryosleeper(StarSystemAPI system,
java.lang.String name) |
protected BaseThemeGenerator.AddedEntity |
addMothership(StarSystemAPI system) |
protected void |
addMothershipChain(ThemeGenContext context,
java.util.List<BaseThemeGenerator.AddedEntity> mothershipsSoFar) |
protected java.util.List<BaseThemeGenerator.AddedEntity> |
addProbes(StarSystemAPI system,
int num) |
protected BaseThemeGenerator.AddedEntity |
addSurveyShip(StarSystemAPI system) |
protected java.util.List<BaseThemeGenerator.AddedEntity> |
addToConstellation(Constellation c,
java.lang.String type,
int num,
boolean biggestFirst) |
protected java.util.List<BaseThemeGenerator.AddedEntity> |
addToSystem(StarSystemAPI system,
java.lang.String type,
int num) |
protected void |
assignRandomSpecials(java.util.List<BaseThemeGenerator.AddedEntity> entities) |
static boolean |
constellationIsEmpty(Constellation c) |
static PlanetAPI |
findInterestingPlanet(java.util.List<StarSystemAPI> systems,
java.util.Set<PlanetAPI> exclude) |
static PlanetAPI |
findInterestingPlanet(java.util.List<StarSystemAPI> systems,
java.util.Set<PlanetAPI> exclude,
boolean includeKnown,
boolean includeRuins,
java.util.Random random) |
static StarSystemAPI |
findNearbySystem(SectorEntityToken from,
java.util.Set<StarSystemAPI> exclude) |
static StarSystemAPI |
findNearbySystem(SectorEntityToken from,
java.util.Set<StarSystemAPI> exclude,
java.util.Random random,
float maxRange) |
void |
generateForSector(ThemeGenContext context,
float allowedUnusedFraction) |
static java.lang.String |
getInterestingCondition(PlanetAPI planet,
boolean includeRuins) |
protected int |
getNumProbesForSystem(LocationAPI system) |
int |
getOrder()
Themes with lower "order" values get their shot at generating content first.
|
protected java.util.List<Constellation> |
getSortedAvailableConstellations(ThemeGenContext context,
boolean emptyOk,
Vector2f sortFrom,
java.util.List<Constellation> exclude)
Sorted by *descending* distance from sortFrom.
|
java.lang.String |
getThemeId() |
static boolean |
hasSpecial(SectorEntityToken entity) |
protected void |
linkFractionToParent(BaseThemeGenerator.AddedEntity parent,
java.util.List<BaseThemeGenerator.AddedEntity> children,
float p,
DomainSurveyDerelictSpecial.SpecialType type) |
protected void |
linkToMothership(SectorEntityToken from,
SectorEntityToken mothership) |
protected void |
linkToParent(SectorEntityToken from,
SectorEntityToken parent,
DomainSurveyDerelictSpecial.SpecialType type) |
static boolean |
systemIsEmpty(StarSystemAPI system) |
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
public static final float BASE_LINK_FRACTION
public static final float SALVAGE_SPECIAL_FRACTION
public static final float TOPOGRAPHIC_DATA_FRACTION
public static final int BRANCHES_PER_MOTHERSHIP_MIN
public static final int BRANCHES_PER_MOTHERSHIP_MAX
public static final int BRANCHES_PER_SHIP_MIN
public static final int BRANCHES_PER_SHIP_MAX
public static java.util.Set<java.lang.String> interestingConditions
public static java.util.Set<java.lang.String> interestingConditionsWithoutHabitable
public static java.util.Set<java.lang.String> interestingConditionsWithRuins
public java.lang.String getThemeId()
getThemeId
in interface ThemeGenerator
getThemeId
in class BaseThemeGenerator
public void generateForSector(ThemeGenContext context, float allowedUnusedFraction)
generateForSector
in interface ThemeGenerator
generateForSector
in class BaseThemeGenerator
protected void addMothershipChain(ThemeGenContext context, java.util.List<BaseThemeGenerator.AddedEntity> mothershipsSoFar)
protected void assignRandomSpecials(java.util.List<BaseThemeGenerator.AddedEntity> entities)
public static StarSystemAPI findNearbySystem(SectorEntityToken from, java.util.Set<StarSystemAPI> exclude)
public static StarSystemAPI findNearbySystem(SectorEntityToken from, java.util.Set<StarSystemAPI> exclude, java.util.Random random, float maxRange)
public static java.lang.String getInterestingCondition(PlanetAPI planet, boolean includeRuins)
public static PlanetAPI findInterestingPlanet(java.util.List<StarSystemAPI> systems, java.util.Set<PlanetAPI> exclude)
public static PlanetAPI findInterestingPlanet(java.util.List<StarSystemAPI> systems, java.util.Set<PlanetAPI> exclude, boolean includeKnown, boolean includeRuins, java.util.Random random)
protected int getNumProbesForSystem(LocationAPI system)
protected void linkFractionToParent(BaseThemeGenerator.AddedEntity parent, java.util.List<BaseThemeGenerator.AddedEntity> children, float p, DomainSurveyDerelictSpecial.SpecialType type)
protected void linkToParent(SectorEntityToken from, SectorEntityToken parent, DomainSurveyDerelictSpecial.SpecialType type)
protected void linkToMothership(SectorEntityToken from, SectorEntityToken mothership)
public static boolean hasSpecial(SectorEntityToken entity)
protected java.util.List<BaseThemeGenerator.AddedEntity> addToConstellation(Constellation c, java.lang.String type, int num, boolean biggestFirst)
protected java.util.List<BaseThemeGenerator.AddedEntity> addToSystem(StarSystemAPI system, java.lang.String type, int num)
protected BaseThemeGenerator.AddedEntity addMothership(StarSystemAPI system)
protected BaseThemeGenerator.AddedEntity addCryosleeper(StarSystemAPI system, java.lang.String name)
protected BaseThemeGenerator.AddedEntity addSurveyShip(StarSystemAPI system)
protected java.util.List<BaseThemeGenerator.AddedEntity> addProbes(StarSystemAPI system, int num)
protected java.util.List<Constellation> getSortedAvailableConstellations(ThemeGenContext context, boolean emptyOk, Vector2f sortFrom, java.util.List<Constellation> exclude)
getSortedAvailableConstellations
in class BaseThemeGenerator
context
- sortFrom
- public static boolean constellationIsEmpty(Constellation c)
public static boolean systemIsEmpty(StarSystemAPI system)
public int getOrder()
ThemeGenerator
getOrder
in interface ThemeGenerator
getOrder
in class BaseThemeGenerator
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.