Package zombie
Class AmbientStreamManager
java.lang.Object
zombie.BaseAmbientStreamManager
zombie.AmbientStreamManager
public class AmbientStreamManager extends BaseAmbientStreamManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AmbientStreamManager.Ambient
static class
AmbientStreamManager.AmbientLoop
static class
AmbientStreamManager.WorldSoundEmitter
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList
allAmbient
java.util.ArrayList
ambient
java.util.ArrayList
dayAmbient
java.util.ArrayDeque
freeEmitters
java.util.ArrayList
indoorAmbient
boolean
initialized
static BaseAmbientStreamManager
instance
static int
MaxAmbientCount
static float
MaxRange
java.util.ArrayList
nightAmbient
static int
OneInAmbienceChance
java.util.ArrayList
outdoorAmbient
java.util.ArrayList
rainAmbient
java.util.ArrayList
windAmbient
java.util.ArrayList
worldEmitters
-
Constructor Summary
Constructors Constructor Description AmbientStreamManager()
-
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)
void
addRandomAmbient()
void
doAlarm(RoomDef room)
void
doGunEvent()
void
doOneShotAmbients()
static BaseAmbientStreamManager
getInstance()
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
-
OneInAmbienceChance
public static int OneInAmbienceChance -
MaxAmbientCount
public static int MaxAmbientCount -
MaxRange
public static float MaxRange -
instance
-
ambient
public java.util.ArrayList ambient -
worldEmitters
public java.util.ArrayList worldEmitters -
freeEmitters
public java.util.ArrayDeque freeEmitters -
allAmbient
public java.util.ArrayList allAmbient -
nightAmbient
public java.util.ArrayList nightAmbient -
dayAmbient
public java.util.ArrayList dayAmbient -
rainAmbient
public java.util.ArrayList rainAmbient -
indoorAmbient
public java.util.ArrayList indoorAmbient -
outdoorAmbient
public java.util.ArrayList outdoorAmbient -
windAmbient
public java.util.ArrayList windAmbient -
initialized
public boolean initialized
-
-
Constructor Details
-
AmbientStreamManager
public AmbientStreamManager()
-
-
Method Details
-
getInstance
-
update
public void update()- Specified by:
update
in classBaseAmbientStreamManager
-
doOneShotAmbients
public void doOneShotAmbients()- Specified by:
doOneShotAmbients
in classBaseAmbientStreamManager
-
addRandomAmbient
public void addRandomAmbient()- Specified by:
addRandomAmbient
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
-
init
public void init()- Specified by:
init
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
-
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
-