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) |
public void advance(float amount, SensorGhost ghost, GhostBehavior behavior)
advance
in interface GhostBehaviorInterrupt
public boolean shouldInterruptBehavior(SensorGhost ghost, GhostBehavior behavior)
shouldInterruptBehavior
in interface GhostBehaviorInterrupt
protected boolean hasDelayRemaining()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.