public class GBIGenerateSlipstream extends BaseGhostBehaviorInterrupt implements EveryFrameScript
| Modifier and Type | Class and Description |
|---|---|
static interface |
GBIGenerateSlipstream.GhostBehaviorWithSlipstream |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addedScript |
protected GhostBehavior |
behavior |
protected int |
burnLevel |
protected float |
duration |
protected SensorGhost |
ghost |
protected int |
maxSegments |
protected float |
maxWidth |
protected float |
minWidth |
protected SlipstreamTerrainPlugin2 |
plugin |
protected org.lwjgl.util.vector.Vector2f |
prev |
protected CampaignTerrainAPI |
slipstream |
protected float |
widenRate |
delay| Constructor and Description |
|---|
GBIGenerateSlipstream(float minWidth,
float maxWidth,
int burnLevel,
float widenRate,
int maxSegments,
float duration) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
void |
advance(float amount,
SensorGhost ghost,
GhostBehavior behavior) |
boolean |
isDone() |
boolean |
runWhilePaused() |
boolean |
shouldInterruptBehavior(SensorGhost ghost,
GhostBehavior behavior) |
hasDelayRemainingprotected boolean addedScript
protected float minWidth
protected float maxWidth
protected int burnLevel
protected SensorGhost ghost
protected GhostBehavior behavior
protected float widenRate
protected int maxSegments
protected float duration
protected CampaignTerrainAPI slipstream
protected SlipstreamTerrainPlugin2 plugin
protected org.lwjgl.util.vector.Vector2f prev
public GBIGenerateSlipstream(float minWidth, float maxWidth, int burnLevel, float widenRate, int maxSegments, float duration)
public boolean shouldInterruptBehavior(SensorGhost ghost, GhostBehavior behavior)
shouldInterruptBehavior in interface GhostBehaviorInterruptshouldInterruptBehavior in class BaseGhostBehaviorInterruptpublic void advance(float amount, SensorGhost ghost, GhostBehavior behavior)
advance in interface GhostBehaviorInterruptadvance in class BaseGhostBehaviorInterruptpublic boolean isDone()
isDone in interface EveryFrameScriptpublic boolean runWhilePaused()
runWhilePaused in interface EveryFrameScriptpublic void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptamount - seconds elapsed during the last frame.