zombie.core.sound
Class NoAttenuation

java.lang.Object
  extended by zombie.core.sound.NoAttenuation
All Implemented Interfaces:
Attenuator

public class NoAttenuation
extends java.lang.Object
implements Attenuator

An Attenuator that performs no attenuation at all


Field Summary
static Attenuator INSTANCE
           
 
Constructor Summary
NoAttenuation()
           
 
Method Summary
 float getAttenuation(float x, float y)
          Calculate the attenuation at the specifed point, in absolute world coordinates.
 float getXPosition(float x, float y, float z)
           
 float getYPosition(float x, float y, float z)
           
 float getZPosition(float x, float y, float z)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final Attenuator INSTANCE
Constructor Detail

NoAttenuation

public NoAttenuation()
Method Detail

getAttenuation

public float getAttenuation(float x,
                            float y)
Description copied from interface: Attenuator
Calculate the attenuation at the specifed point, in absolute world coordinates. The closer something is to the "origin", the higher the gain will be, up to 1.0f maximum.

Specified by:
getAttenuation in interface Attenuator
Returns:
gain factor, between 0.0f and 1.0f inclusive.

getXPosition

public float getXPosition(float x,
                          float y,
                          float z)
Specified by:
getXPosition in interface Attenuator

getYPosition

public float getYPosition(float x,
                          float y,
                          float z)
Specified by:
getYPosition in interface Attenuator

getZPosition

public float getZPosition(float x,
                          float y,
                          float z)
Specified by:
getZPosition in interface Attenuator