public class BaseGhostBehavior extends java.lang.Object implements GhostBehavior
| Modifier and Type | Field and Description |
|---|---|
protected float |
duration |
protected java.util.List<GhostBehaviorInterrupt> |
interrupts |
| Constructor and Description |
|---|
BaseGhostBehavior(float duration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterrupt(GhostBehaviorInterrupt interrupt) |
void |
advance(float amount,
SensorGhost ghost) |
void |
end() |
boolean |
isDone() |
protected float duration
protected java.util.List<GhostBehaviorInterrupt> interrupts
public BaseGhostBehavior(float duration)
public boolean isDone()
isDone in interface GhostBehaviorpublic void advance(float amount, SensorGhost ghost)
advance in interface GhostBehaviorpublic void end()
public void addInterrupt(GhostBehaviorInterrupt interrupt)
addInterrupt in interface GhostBehavior