public interface StarSystemAPI extends LocationAPI
| Modifier and Type | Method and Description |
|---|---|
void |
autogenerateHyperspaceJumpPoints()
Calls autogenerateHyperspaceJumpPoints(false, false)
|
void |
autogenerateHyperspaceJumpPoints(boolean generateEntrancesAtGasGiants,
boolean generateFringeJumpPoint)
Generates jump points into the system and adds them to hyperspace.
|
void |
autogenerateHyperspaceJumpPoints(boolean generateEntrancesAtGasGiants,
boolean generateFringeJumpPoint,
boolean generatePlanetConditions) |
void |
generateAnchorIfNeeded()
Generates the hyperspace anchor for the star (and nothing else - no gas giant gravity
wells or fringe jump point), unless one was already generated.
|
StarAge |
getAge() |
java.util.List<JumpPointAPI> |
getAutogeneratedJumpPointsInHyper() |
java.util.List<NascentGravityWellAPI> |
getAutogeneratedNascentWellsInHyper() |
java.lang.String |
getBaseName()
Star name without "Star System" appended to it.
|
SectorEntityToken |
getCenter() |
Constellation |
getConstellation()
Can be null for non-procgen systems.
|
float |
getDaysSinceLastPlayerVisit() |
java.lang.Boolean |
getDoNotShowIntelFromThisLocationOnMap() |
SectorEntityToken |
getHyperspaceAnchor()
A location token corresponding to the center of the system in hyperspace.
|
long |
getLastPlayerVisitTimestamp() |
java.awt.Color |
getLightColor() |
org.lwjgl.util.vector.Vector2f |
getLocation() |
java.lang.Float |
getMapGridHeightOverride() |
java.lang.Float |
getMapGridWidthOverride() |
float |
getMaxRadiusInHyperspace()
Only considers jump points into the system generated by autogenerateHyperspaceJumpPoints.
|
java.lang.String |
getOptionalUniqueId()
If non-null, will be used by the SectorAPI.getStarSystem(String) method.
|
PlanetAPI |
getSecondary() |
PlanetAPI |
getStar() |
PlanetAPI |
getTertiary() |
StarSystemGenerator.StarSystemType |
getType() |
boolean |
hasBlackHole() |
boolean |
hasPulsar() |
java.lang.Boolean |
hasSystemwideNebula() |
SectorEntityToken |
initNonStarCenter() |
PlanetAPI |
initStar(java.lang.String id,
java.lang.String type,
java.awt.Color color,
float radius,
float coronaSize)
Deprecated.
|
PlanetAPI |
initStar(java.lang.String id,
java.lang.String type,
float radius,
float coronaSize) |
PlanetAPI |
initStar(java.lang.String id,
java.lang.String type,
float radius,
float hyperspaceLocationX,
float hyperspaceLocationY,
float coronaSize)
Also automatically creates a wormhole/jump point leading to the star from hyperspace.
|
PlanetAPI |
initStar(java.lang.String id,
java.lang.String type,
float radius,
float coronaSize,
float windBurnLevel,
float flareProbability,
float crLossMult)
Will not automatically generate a hyperspace anchor for the star.
|
boolean |
isEnteredByPlayer() |
boolean |
isInConstellation()
Returns false if the constellation is null or contains only one star system.
|
boolean |
isProcgen() |
void |
setAge(StarAge age) |
void |
setBaseName(java.lang.String baseName) |
void |
setCenter(SectorEntityToken center) |
void |
setConstellation(Constellation constellation) |
void |
setDoNotShowIntelFromThisLocationOnMap(java.lang.Boolean doNotShowIntelFromThisLocationOnMap) |
void |
setEnteredByPlayer(boolean enteredByPlayer) |
void |
setHasSystemwideNebula(java.lang.Boolean hasSystemwideNebula) |
void |
setHyperspaceAnchor(SectorEntityToken hyperspaceAnchor) |
void |
setLightColor(java.awt.Color lightColor)
Only applicable if this location has a light source (i.e.
|
void |
setMapGridHeightOverride(java.lang.Float mapGridHeightOverride) |
void |
setMapGridWidthOverride(java.lang.Float mapGridWidthOverride) |
void |
setMaxRadiusInHyperspace(float maxRadiusInHyperspace) |
void |
setOptionalUniqueId(java.lang.String optionalUniqueId)
If non-null, will be used by the SectorAPI.getStarSystem(String) method.
|
void |
setProcgen(boolean isProcgen) |
void |
setSecondary(PlanetAPI secondary) |
void |
setStar(PlanetAPI star) |
void |
setTertiary(PlanetAPI tertiary) |
void |
setType(StarSystemGenerator.StarSystemType type) |
activeThisFrame, addAsteroid, addAsteroidBelt, addAsteroidBelt, addCorona, addCorona, addCustomEntity, addCustomEntity, addCustomEntity, addCustomEntity, addEntity, addFleetStub, addHitParticle, addOrbitalJunk, addParticle, addPlanet, addRadioChatter, addRingBand, addRingBand, addScript, addSpawnPoint, addTag, addTerrain, clearTags, createToken, createToken, getAllEntities, getAsteroids, getBackgroundColorShifter, getBackgroundParticleColorShifter, getBackgroundTextureFilename, getCustomEntities, getCustomEntitiesWithTag, getEntities, getEntitiesWithTag, getEntityById, getEntityByName, getFleets, getFleetStubs, getGravityWells, getId, getJumpPoints, getMemoryWithoutUpdate, getName, getNameWithLowercaseType, getNameWithLowercaseTypeShort, getNameWithNoType, getNameWithTypeIfNebula, getNameWithTypeShort, getOrbitalStations, getPersistentData, getPlanets, getScripts, getSpawnPoints, getTags, getTerrainCopy, hasTag, isCurrentLocation, isDeepSpace, isHyperspace, isNebula, removeEntity, removeFleetStub, removeScript, removeScriptsOfClass, removeSpawnPoint, removeTag, renderingLayersUpdated, setBackgroundOffset, setBackgroundTextureFilename, setName, spawnFleet, updateAllOrbitsorg.lwjgl.util.vector.Vector2f getLocation()
getLocation in interface LocationAPIPlanetAPI initStar(java.lang.String id, java.lang.String type, float radius, float coronaSize, float windBurnLevel, float flareProbability, float crLossMult)
id - unique id for this startype - color - radius - PlanetAPI initStar(java.lang.String id, java.lang.String type, float radius, float coronaSize)
void generateAnchorIfNeeded()
@Deprecated PlanetAPI initStar(java.lang.String id, java.lang.String type, java.awt.Color color, float radius, float coronaSize)
PlanetAPI initStar(java.lang.String id, java.lang.String type, float radius, float hyperspaceLocationX, float hyperspaceLocationY, float coronaSize)
id - unique id for this startype - color - radius - hyperspaceLocationX - hyperspaceLocationY - SectorEntityToken getHyperspaceAnchor()
void setHyperspaceAnchor(SectorEntityToken hyperspaceAnchor)
void autogenerateHyperspaceJumpPoints()
void autogenerateHyperspaceJumpPoints(boolean generateEntrancesAtGasGiants, boolean generateFringeJumpPoint)
generateEntrancesAtGasGiants - whether one-way jump points into the system are generated at gas giantsgenerateFringeJumpPoint - whether an extra jump point (two-way) is generated on the fringes of the systemjava.awt.Color getLightColor()
void setLightColor(java.awt.Color lightColor)
lightColor - java.lang.String getBaseName()
float getMaxRadiusInHyperspace()
SectorEntityToken initNonStarCenter()
SectorEntityToken getCenter()
void setBaseName(java.lang.String baseName)
PlanetAPI getSecondary()
void setSecondary(PlanetAPI secondary)
PlanetAPI getTertiary()
void setTertiary(PlanetAPI tertiary)
java.util.List<JumpPointAPI> getAutogeneratedJumpPointsInHyper()
StarSystemGenerator.StarSystemType getType()
void setType(StarSystemGenerator.StarSystemType type)
Constellation getConstellation()
getConstellation in interface LocationAPIboolean isInConstellation()
isInConstellation in interface LocationAPIvoid setConstellation(Constellation constellation)
void setCenter(SectorEntityToken center)
void autogenerateHyperspaceJumpPoints(boolean generateEntrancesAtGasGiants, boolean generateFringeJumpPoint, boolean generatePlanetConditions)
void setProcgen(boolean isProcgen)
boolean isProcgen()
java.lang.Boolean hasSystemwideNebula()
void setHasSystemwideNebula(java.lang.Boolean hasSystemwideNebula)
boolean isEnteredByPlayer()
void setEnteredByPlayer(boolean enteredByPlayer)
long getLastPlayerVisitTimestamp()
getLastPlayerVisitTimestamp in interface LocationAPIfloat getDaysSinceLastPlayerVisit()
getDaysSinceLastPlayerVisit in interface LocationAPIboolean hasPulsar()
java.lang.Boolean getDoNotShowIntelFromThisLocationOnMap()
void setDoNotShowIntelFromThisLocationOnMap(java.lang.Boolean doNotShowIntelFromThisLocationOnMap)
boolean hasBlackHole()
java.lang.Float getMapGridWidthOverride()
void setMapGridWidthOverride(java.lang.Float mapGridWidthOverride)
java.lang.Float getMapGridHeightOverride()
void setMapGridHeightOverride(java.lang.Float mapGridHeightOverride)
void setMaxRadiusInHyperspace(float maxRadiusInHyperspace)
java.lang.String getOptionalUniqueId()
optionalUniqueId - void setOptionalUniqueId(java.lang.String optionalUniqueId)
optionalUniqueId - java.util.List<NascentGravityWellAPI> getAutogeneratedNascentWellsInHyper()