public class GBIntercept extends BaseGhostBehavior
| Modifier and Type | Field and Description |
|---|---|
protected float |
desiredRange |
protected boolean |
endOnIntercept |
protected int |
maxBurn |
protected SectorEntityToken |
other |
duration, interrupts| Constructor and Description |
|---|
GBIntercept(SectorEntityToken other,
float duration,
int maxBurn,
boolean endOnIntercept) |
GBIntercept(SectorEntityToken other,
float duration,
int maxBurn,
float desiredRange,
boolean endOnIntercept) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount,
SensorGhost ghost) |
addInterrupt, end, isDoneprotected SectorEntityToken other
protected int maxBurn
protected boolean endOnIntercept
protected float desiredRange
public GBIntercept(SectorEntityToken other, float duration, int maxBurn, boolean endOnIntercept)
public GBIntercept(SectorEntityToken other, float duration, int maxBurn, float desiredRange, boolean endOnIntercept)
public void advance(float amount, SensorGhost ghost)
advance in interface GhostBehavioradvance in class BaseGhostBehavior