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