Package zombie.characters
Class CharacterSoundEmitter
java.lang.Object
zombie.characters.BaseCharacterSoundEmitter
zombie.characters.CharacterSoundEmitter
- All Implemented Interfaces:
ICommonSoundEmitter
public class CharacterSoundEmitter extends BaseCharacterSoundEmitter implements ICommonSoundEmitter
-
Field Summary
Fields inherited from class zombie.characters.BaseCharacterSoundEmitter
character
-
Constructor Summary
Constructors Constructor Description CharacterSoundEmitter(IsoGameCharacter chr)
-
Method Summary
Modifier and Type Method Description boolean
isClear()
boolean
isEmpty()
boolean
isPlaying(long eventInstance)
boolean
isPlaying(java.lang.String alias)
void
playFootsteps(java.lang.String file)
long
playSound(java.lang.String file)
long
playSound(java.lang.String file, boolean doWorldSound)
long
playSound(java.lang.String file, IsoObject proxy)
long
playSoundImpl(java.lang.String file, IsoObject proxy)
long
playVocals(java.lang.String file)
void
set(float x, float y, float z)
void
setPos(float x, float y, float z)
void
setVolume(long handle, float volume)
int
stopSound(long eventInstance)
void
tick()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CharacterSoundEmitter
-
-
Method Details
-
playVocals
public long playVocals(java.lang.String file)- Specified by:
playVocals
in classBaseCharacterSoundEmitter
-
playFootsteps
public void playFootsteps(java.lang.String file)- Specified by:
playFootsteps
in classBaseCharacterSoundEmitter
-
playSound
public long playSound(java.lang.String file)- Specified by:
playSound
in interfaceICommonSoundEmitter
- Specified by:
playSound
in classBaseCharacterSoundEmitter
-
playSound
public long playSound(java.lang.String file, boolean doWorldSound)- Specified by:
playSound
in interfaceICommonSoundEmitter
- Specified by:
playSound
in classBaseCharacterSoundEmitter
-
playSound
- Specified by:
playSound
in classBaseCharacterSoundEmitter
-
playSoundImpl
- Specified by:
playSoundImpl
in classBaseCharacterSoundEmitter
-
tick
public void tick()- Specified by:
tick
in interfaceICommonSoundEmitter
- Specified by:
tick
in classBaseCharacterSoundEmitter
-
setPos
public void setPos(float x, float y, float z)- Specified by:
setPos
in interfaceICommonSoundEmitter
-
set
public void set(float x, float y, float z)- Specified by:
set
in classBaseCharacterSoundEmitter
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceICommonSoundEmitter
-
isClear
public boolean isClear()- Specified by:
isClear
in classBaseCharacterSoundEmitter
-
setVolume
public void setVolume(long handle, float volume)- Specified by:
setVolume
in interfaceICommonSoundEmitter
- Specified by:
setVolume
in classBaseCharacterSoundEmitter
-
stopSound
public int stopSound(long eventInstance)- Specified by:
stopSound
in interfaceICommonSoundEmitter
- Specified by:
stopSound
in classBaseCharacterSoundEmitter
-
isPlaying
public boolean isPlaying(long eventInstance)- Specified by:
isPlaying
in interfaceICommonSoundEmitter
- Specified by:
isPlaying
in classBaseCharacterSoundEmitter
-
isPlaying
public boolean isPlaying(java.lang.String alias)- Specified by:
isPlaying
in interfaceICommonSoundEmitter
- Specified by:
isPlaying
in classBaseCharacterSoundEmitter
-