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 string, int int1, int int2, int int3, float float1)
void
addAmbientEmitter(float float1, float float2, int int1, java.lang.String string)
void
addBlend(java.lang.String string, float float1, boolean boolean1, boolean boolean2, boolean boolean3, boolean boolean4)
void
addDaytimeAmbientEmitter(float float1, float float2, int int1, java.lang.String string)
void
addRandomAmbient()
void
doAlarm(RoomDef roomDef)
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 string, float float1, boolean boolean1, boolean boolean2, boolean boolean3, boolean boolean4)- 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 string, int int1, int int2, int int3, float float1)- Specified by:
addAmbient
in classBaseAmbientStreamManager
-
addAmbientEmitter
public void addAmbientEmitter(float float1, float float2, int int1, java.lang.String string)- Specified by:
addAmbientEmitter
in classBaseAmbientStreamManager
-
addDaytimeAmbientEmitter
public void addDaytimeAmbientEmitter(float float1, float float2, int int1, java.lang.String string)- Specified by:
addDaytimeAmbientEmitter
in classBaseAmbientStreamManager
-