Class GBIGenerateSlipstream
java.lang.Object
com.fs.starfarer.api.impl.campaign.ghosts.BaseGhostBehaviorInterrupt
com.fs.starfarer.api.impl.campaign.ghosts.GBIGenerateSlipstream
- All Implemented Interfaces:
EveryFrameScript
,GhostBehaviorInterrupt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected GhostBehavior
protected int
protected float
protected SensorGhost
protected int
protected float
protected float
protected SlipstreamTerrainPlugin2
protected org.lwjgl.util.vector.Vector2f
protected CampaignTerrainAPI
protected float
Fields inherited from class com.fs.starfarer.api.impl.campaign.ghosts.BaseGhostBehaviorInterrupt
delay
-
Constructor Summary
ConstructorsConstructorDescriptionGBIGenerateSlipstream
(float minWidth, float maxWidth, int burnLevel, float widenRate, int maxSegments, float duration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.void
advance
(float amount, SensorGhost ghost, GhostBehavior behavior) boolean
isDone()
boolean
boolean
shouldInterruptBehavior
(SensorGhost ghost, GhostBehavior behavior) Methods inherited from class com.fs.starfarer.api.impl.campaign.ghosts.BaseGhostBehaviorInterrupt
hasDelayRemaining
-
Field Details
-
addedScript
protected boolean addedScript -
minWidth
protected float minWidth -
maxWidth
protected float maxWidth -
burnLevel
protected int burnLevel -
ghost
-
behavior
-
widenRate
protected float widenRate -
maxSegments
protected int maxSegments -
duration
protected float duration -
slipstream
-
plugin
-
prev
protected org.lwjgl.util.vector.Vector2f prev
-
-
Constructor Details
-
GBIGenerateSlipstream
public GBIGenerateSlipstream(float minWidth, float maxWidth, int burnLevel, float widenRate, int maxSegments, float duration)
-
-
Method Details
-
shouldInterruptBehavior
- Specified by:
shouldInterruptBehavior
in interfaceGhostBehaviorInterrupt
- Overrides:
shouldInterruptBehavior
in classBaseGhostBehaviorInterrupt
-
advance
- Specified by:
advance
in interfaceGhostBehaviorInterrupt
- Overrides:
advance
in classBaseGhostBehaviorInterrupt
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceEveryFrameScript
- Returns:
- true when the script is finished and can be cleaned up by the engine.
-
runWhilePaused
public boolean runWhilePaused()- Specified by:
runWhilePaused
in interfaceEveryFrameScript
- Returns:
- whether advance() should be called while the campaign engine is paused.
-
advance
public void advance(float amount) Description copied from interface:EveryFrameScript
Use SectorAPI.getClock() to convert to campaign days.- Specified by:
advance
in interfaceEveryFrameScript
- Parameters:
amount
- seconds elapsed during the last frame.
-