Class SlipstreamTerrainPlugin
java.lang.Object
com.fs.starfarer.api.impl.campaign.terrain.BaseTerrain
com.fs.starfarer.api.impl.campaign.terrain.SlipstreamTerrainPlugin
- All Implemented Interfaces:
CampaignTerrainPlugin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TimeoutTracker<SectorEntityToken>
static final String
static final float
static final float
protected Map<SectorEntityToken,
SlipstreamTerrainPlugin.Stream> static final float
Fields inherited from class com.fs.starfarer.api.impl.campaign.terrain.BaseTerrain
entity, EXTRA_SOUND_RADIUS, name, TERRAIN_LOCK_KEY, terrainId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) void
applyEffect
(SectorEntityToken entity, float days) boolean
containsEntity
(SectorEntityToken other) boolean
containsPoint
(org.lwjgl.util.vector.Vector2f point, float radius) void
createTooltip
(TooltipMakerAPI tooltip, boolean expanded) void
disrupt
(CampaignFleetAPI fleet, float dur) Set of layers can not change.float
How far away from the viewport the center of this entity can be before it stops being rendered.static CampaignTerrainAPI
getSlipstream
(LocationAPI location) static SlipstreamTerrainPlugin
getSlipstreamPlugin
(LocationAPI location) protected SlipstreamTerrainPlugin.Stream
float
boolean
void
init
(String terrainId, SectorEntityToken entity, Object param) boolean
boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.terrain.BaseTerrain
canPlayerHoldStationIn, createCombatSection, createFirstSection, createTravelSection, getEntity, getExtraSoundRadius, getIconSpriteName, getLoopFourPitch, getLoopFourVolume, getLoopOnePitch, getLoopOneVolume, getLoopThreePitch, getLoopThreeVolume, getLoopTwoPitch, getLoopTwoVolume, getMaxEffectRadius, getMinEffectRadius, getModId, getNameAOrAn, getNameColor, getOptimalEffectRadius, getProximitySoundFactor, getRelatedEntity, getSpec, getTerrainId, hasAIFlag, hasAIFlag, hasMapIcon, isPreventedFromAffecting, preventOtherTerrainFromAffecting, preventOtherTerrainFromAffecting, render, renderOnMap, renderOnMapAbove, renderOnRadar, setEntity, setTerrainId, setTerrainName, shouldCheckFleetsToApplyEffect, shouldPlayLoopFour, shouldPlayLoopOne, shouldPlayLoopThree, shouldPlayLoopTwo
-
Field Details
-
LOCATION_SLIPSTREAM_KEY
- See Also:
-
MIN_POINT_DIST
public static final float MIN_POINT_DIST- See Also:
-
MAX_POINT_DIST
public static final float MAX_POINT_DIST- See Also:
-
WIDTH_GROWTH_PER_DAY
public static final float WIDTH_GROWTH_PER_DAY- See Also:
-
streams
-
containsCache
-
disrupted
-
-
Constructor Details
-
SlipstreamTerrainPlugin
public SlipstreamTerrainPlugin()
-
-
Method Details
-
getSlipstream
-
getSlipstreamPlugin
-
init
- Specified by:
init
in interfaceCampaignTerrainPlugin
- Overrides:
init
in classBaseTerrain
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceCampaignTerrainPlugin
- Overrides:
advance
in classBaseTerrain
-
getDisrupted
-
disrupt
-
getStream
-
applyEffect
- Overrides:
applyEffect
in classBaseTerrain
-
containsEntity
- Specified by:
containsEntity
in interfaceCampaignTerrainPlugin
- Overrides:
containsEntity
in classBaseTerrain
-
containsPoint
public boolean containsPoint(org.lwjgl.util.vector.Vector2f point, float radius) - Specified by:
containsPoint
in interfaceCampaignTerrainPlugin
- Overrides:
containsPoint
in classBaseTerrain
-
getActiveLayers
Description copied from interface:CampaignTerrainPlugin
Set of layers can not change.- Specified by:
getActiveLayers
in interfaceCampaignTerrainPlugin
- Overrides:
getActiveLayers
in classBaseTerrain
- Returns:
-
stacksWithSelf
public boolean stacksWithSelf()- Overrides:
stacksWithSelf
in classBaseTerrain
-
getRenderRange
public float getRenderRange()Description copied from interface:CampaignTerrainPlugin
How far away from the viewport the center of this entity can be before it stops being rendered. Should at least be the radius of the entity; sometimes more may be necessary depending on the visual effect desired.- Specified by:
getRenderRange
in interfaceCampaignTerrainPlugin
- Overrides:
getRenderRange
in classBaseTerrain
- Returns:
-
hasTooltip
public boolean hasTooltip()- Specified by:
hasTooltip
in interfaceCampaignTerrainPlugin
- Overrides:
hasTooltip
in classBaseTerrain
-
createTooltip
- Specified by:
createTooltip
in interfaceCampaignTerrainPlugin
- Overrides:
createTooltip
in classBaseTerrain
-
isTooltipExpandable
public boolean isTooltipExpandable()- Specified by:
isTooltipExpandable
in interfaceCampaignTerrainPlugin
- Overrides:
isTooltipExpandable
in classBaseTerrain
-
getTooltipWidth
public float getTooltipWidth()- Specified by:
getTooltipWidth
in interfaceCampaignTerrainPlugin
- Overrides:
getTooltipWidth
in classBaseTerrain
-
getTerrainName
- Specified by:
getTerrainName
in interfaceCampaignTerrainPlugin
- Overrides:
getTerrainName
in classBaseTerrain
-
getNameForTooltip
- Specified by:
getNameForTooltip
in interfaceCampaignTerrainPlugin
- Overrides:
getNameForTooltip
in classBaseTerrain
-
getEffectCategory
- Overrides:
getEffectCategory
in classBaseTerrain
-