1package com.fs.starfarer.api.campaign;
4import java.util.Collection;
8import org.lwjgl.util.vector.Vector2f;
10import com.fs.starfarer.api.EveryFrameScript;
11import com.fs.starfarer.api.campaign.rules.MemoryAPI;
12import com.fs.starfarer.api.impl.campaign.procgen.Constellation;
13import com.fs.starfarer.api.util.ColorShifterAPI;
56 float angle,
float radius,
float orbitRadius,
float orbitDays);
60 float orbitRadius,
float width,
float minOrbitDays,
61 float maxOrbitDays, String terrainId, String optionalName);
64 float minSize,
float maxSize,
float orbitRadius,
float width,
65 float minOrbitDays,
float maxOrbitDays,
float minSpin,
float maxSpin);
84 float bandWidthInTexture,
int bandIndex, Color color,
85 float bandWidthInEngine,
float middleRadius,
float orbitDays);
109 String key,
float bandWidthInTexture,
int bandIndex, Color color,
110 float bandWidthInEngine,
float middleRadius,
float orbitDays,
111 String terrainId, String optionalName);
163 String factionId,
float radius,
float spriteWidth,
float spriteHeight);
256 String type, String factionId,
float radius,
float spriteWidth,
257 float spriteHeight, Object pluginParams);
260 String type, String factionId, Object pluginParams);
280 void addHitParticle(Vector2f loc, Vector2f vel,
float size,
float brightness,
float duration, Color color);
SectorEntityToken addRingBand(SectorEntityToken focus, String category, String key, float bandWidthInTexture, int bandIndex, Color color, float bandWidthInEngine, float middleRadius, float orbitDays, String terrainId, String optionalName)
RingBandAPI addRingBand(SectorEntityToken focus, String category, String key, float bandWidthInTexture, int bandIndex, Color color, float bandWidthInEngine, float middleRadius, float orbitDays)
List< CustomCampaignEntityAPI > getCustomEntities()
List< SectorEntityToken > getAllEntities()
Constellation getConstellation()
SectorEntityToken getEntityById(String id)
SectorEntityToken addAsteroidBelt(SectorEntityToken focus, int numAsteroids, float orbitRadius, float width, float minOrbitDays, float maxOrbitDays, String terrainId, String optionalName)
SectorEntityToken addTerrain(String terrainId, Object param)
void removeTag(String tag)
void addFleetStub(FleetStubAPI stub)
String getNameWithTypeIfNebula()
PlanetAPI addPlanet(String id, SectorEntityToken focus, String name, String type, float angle, float radius, float orbitRadius, float orbitDays)
List getEntities(Class implementedClassOrInterface)
List< SectorEntityToken > getOrbitalStations()
String getNameWithNoType()
CustomCampaignEntityAPI addCustomEntity(String id, String name, String type, String factionId, float radius, float spriteWidth, float spriteHeight, Object pluginParams)
ParticleControllerAPI addParticle(Vector2f loc, Vector2f vel, float size, float brightness, float rampUp, float duration, Color color)
String getNameWithTypeShort()
SectorEntityToken getEntityByName(String name)
void addHitParticle(Vector2f loc, Vector2f vel, float size, float brightness, float duration, Color color)
boolean activeThisFrame()
SectorEntityToken addRadioChatter(SectorEntityToken entity, float extraRadius)
List< SectorEntityToken > getJumpPoints()
boolean hasTag(String tag)
long getLastPlayerVisitTimestamp()
float getDaysSinceLastPlayerVisit()
List< FleetStubAPI > getFleetStubs()
List< SectorEntityToken > getEntitiesWithTag(String tag)
SectorEntityToken addCorona(SectorEntityToken star, String terrainType, float extraRadius, float windBurnLevel, float flareProbability, float crLossMult)
void addOrbitalJunk(SectorEntityToken focus, String junkType, int num, float minSize, float maxSize, float orbitRadius, float width, float minOrbitDays, float maxOrbitDays, float minSpin, float maxSpin)
SectorEntityToken addCorona(SectorEntityToken star, float extraRadius, float windBurnLevel, float flareProbability, float crLossMult)
Map< String, Object > getPersistentData()
void renderingLayersUpdated(SectorEntityToken entity)
void addScript(EveryFrameScript script)
List< PlanetAPI > getPlanets()
List< CustomCampaignEntityAPI > getCustomEntitiesWithTag(String tag)
String getNameWithLowercaseType()
void spawnFleet(SectorEntityToken anchor, float xOffset, float yOffset, CampaignFleetAPI fleet)
AsteroidAPI addAsteroid(float radius)
void removeScriptsOfClass(Class c)
void removeFleetStub(FleetStubAPI stub)
List< CampaignTerrainAPI > getTerrainCopy()
void addEntity(SectorEntityToken entity)
ColorShifterAPI getBackgroundParticleColorShifter()
SectorEntityToken createToken(float x, float y)
void setName(String name)
Collection< String > getTags()
List< SectorEntityToken > getAsteroids()
ColorShifterAPI getBackgroundColorShifter()
boolean isInConstellation()
CustomCampaignEntityAPI addCustomEntity(String id, String name, String type, String factionId, float radius, float spriteWidth, float spriteHeight)
void removeScript(EveryFrameScript script)
CustomCampaignEntityAPI addCustomEntity(String id, String name, String type, String factionId, Object pluginParams)
boolean isCurrentLocation()
CustomCampaignEntityAPI addCustomEntity(String id, String name, String type, String factionId)
void setBackgroundTextureFilename(String backgroundTextureFilename)
void removeEntity(SectorEntityToken entity)
SectorEntityToken addAsteroidBelt(SectorEntityToken focus, int numAsteroids, float orbitRadius, float width, float minOrbitDays, float maxOrbitDays)
List< EveryFrameScript > getScripts()
MemoryAPI getMemoryWithoutUpdate()
List< NascentGravityWellAPI > getGravityWells()
void setBackgroundOffset(float x, float y)
String getNameWithLowercaseTypeShort()
void addSpawnPoint(SpawnPointPlugin point)
SectorEntityToken createToken(Vector2f loc)
List< CampaignFleetAPI > getFleets()
String getBackgroundTextureFilename()
void removeSpawnPoint(SpawnPointPlugin point)
List< SpawnPointPlugin > getSpawnPoints()