Package zombie
Class AmbientSoundManager
java.lang.Object
zombie.BaseAmbientStreamManager
zombie.AmbientSoundManager
public class AmbientSoundManager extends BaseAmbientStreamManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AmbientSoundManager.Ambient
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList
ambient
boolean
initialized
-
Constructor Summary
Constructors Constructor Description AmbientSoundManager()
-
Method Summary
Modifier and Type Method Description void
addAmbient(java.lang.String name, int x, int y, int radius, float volume)
void
addAmbientEmitter(float x, float y, int z, java.lang.String name)
void
addBlend(java.lang.String name, float vol, boolean bIndoors, boolean bRain, boolean bNight, boolean bDay)
void
addDaytimeAmbientEmitter(float x, float y, int z, java.lang.String name)
protected void
addRandomAmbient()
void
doAlarm(RoomDef room)
void
doGunEvent()
void
doOneShotAmbients()
void
init()
void
stop()
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ambient
public java.util.ArrayList ambient -
initialized
public boolean initialized
-
-
Constructor Details
-
AmbientSoundManager
public AmbientSoundManager()
-
-
Method Details
-
update
public void update()- Specified by:
update
in classBaseAmbientStreamManager
-
addAmbient
public void addAmbient(java.lang.String name, int x, int y, int radius, float volume)- Specified by:
addAmbient
in classBaseAmbientStreamManager
-
addAmbientEmitter
public void addAmbientEmitter(float x, float y, int z, java.lang.String name)- Specified by:
addAmbientEmitter
in classBaseAmbientStreamManager
-
addDaytimeAmbientEmitter
public void addDaytimeAmbientEmitter(float x, float y, int z, java.lang.String name)- Specified by:
addDaytimeAmbientEmitter
in classBaseAmbientStreamManager
-
doOneShotAmbients
public void doOneShotAmbients()- Specified by:
doOneShotAmbients
in classBaseAmbientStreamManager
-
init
public void init()- Specified by:
init
in classBaseAmbientStreamManager
-
addBlend
public void addBlend(java.lang.String name, float vol, boolean bIndoors, boolean bRain, boolean bNight, boolean bDay)- Specified by:
addBlend
in classBaseAmbientStreamManager
-
addRandomAmbient
protected void addRandomAmbient()- Specified by:
addRandomAmbient
in classBaseAmbientStreamManager
-
doGunEvent
public void doGunEvent()- Specified by:
doGunEvent
in classBaseAmbientStreamManager
-
doAlarm
- Specified by:
doAlarm
in classBaseAmbientStreamManager
-
stop
public void stop()- Specified by:
stop
in classBaseAmbientStreamManager
-