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 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) |
hasDelayRemaining
protected 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 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 GhostBehaviorInterrupt
shouldInterruptBehavior
in class BaseGhostBehaviorInterrupt
public void advance(float amount, SensorGhost ghost, GhostBehavior behavior)
advance
in interface GhostBehaviorInterrupt
advance
in class BaseGhostBehaviorInterrupt
public boolean isDone()
isDone
in interface EveryFrameScript
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
public void advance(float amount)
EveryFrameScript
advance
in interface EveryFrameScript
amount
- seconds elapsed during the last frame.Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.