public class GBIPlaySound extends BaseGhostBehaviorInterrupt
| Modifier and Type | Field and Description |
|---|---|
protected float |
pitch |
protected boolean |
played |
protected java.lang.String |
soundId |
protected float |
volume |
delay| Constructor and Description |
|---|
GBIPlaySound(float delay,
java.lang.String soundId,
float pitch,
float volume) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldInterruptBehavior(SensorGhost ghost,
GhostBehavior behavior) |
advance, hasDelayRemainingprotected java.lang.String soundId
protected float volume
protected float pitch
protected boolean played
public GBIPlaySound(float delay, java.lang.String soundId, float pitch, float volume)
public boolean shouldInterruptBehavior(SensorGhost ghost, GhostBehavior behavior)
shouldInterruptBehavior in interface GhostBehaviorInterruptshouldInterruptBehavior in class BaseGhostBehaviorInterrupt