public class GBITooClose extends BaseGhostBehaviorInterrupt
| Modifier and Type | Field and Description |
|---|---|
protected float |
distThreshold |
protected SectorEntityToken |
to |
protected SharedTrigger |
trigger |
delay| Constructor and Description |
|---|
GBITooClose(float delay,
SectorEntityToken to,
float distThreshold) |
GBITooClose(float delay,
SectorEntityToken to,
float distThreshold,
SharedTrigger trigger) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldInterruptBehavior(SensorGhost ghost,
GhostBehavior behavior) |
advance, hasDelayRemainingprotected float distThreshold
protected SectorEntityToken to
protected SharedTrigger trigger
public GBITooClose(float delay, SectorEntityToken to, float distThreshold)
public GBITooClose(float delay, SectorEntityToken to, float distThreshold, SharedTrigger trigger)
public boolean shouldInterruptBehavior(SensorGhost ghost, GhostBehavior behavior)
shouldInterruptBehavior in interface GhostBehaviorInterruptshouldInterruptBehavior in class BaseGhostBehaviorInterrupt