public class BaseGhostBehaviorInterrupt extends java.lang.Object implements GhostBehaviorInterrupt
| Modifier and Type | Field and Description |
|---|---|
protected float |
delay |
| Constructor and Description |
|---|
BaseGhostBehaviorInterrupt(float delay) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount,
SensorGhost ghost,
GhostBehavior behavior) |
protected boolean |
hasDelayRemaining() |
boolean |
shouldInterruptBehavior(SensorGhost ghost,
GhostBehavior behavior) |
protected float delay
public BaseGhostBehaviorInterrupt(float delay)
public void advance(float amount, SensorGhost ghost, GhostBehavior behavior)
advance in interface GhostBehaviorInterruptpublic boolean shouldInterruptBehavior(SensorGhost ghost, GhostBehavior behavior)
shouldInterruptBehavior in interface GhostBehaviorInterruptprotected boolean hasDelayRemaining()