Class AudibleCircleArea
java.lang.Object
games.stendhal.client.sound.facade.AudibleCircleArea
- All Implemented Interfaces:
AudibleArea
AudibleCircleAfrea defines a circular area for audible objects.
- Author:
- silvio
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getClosestPoint(float[] result, float[] hearerPos)
float
getHearingIntensity(float[] hearerPos)
float
float
void
getPosition(float[] result)
void
setArea(float innerRadius, float outerRadius)
void
setPosition(float[] position)
toString()
-
Constructor Details
-
AudibleCircleArea
public AudibleCircleArea(float[] center, float innerRadius, float outerRadius)
-
-
Method Details
-
setArea
public void setArea(float innerRadius, float outerRadius) -
setPosition
public void setPosition(float[] position) -
getPosition
public void getPosition(float[] result) -
getInnerRadius
public float getInnerRadius() -
getOuterRadius
public float getOuterRadius() -
getHearingIntensity
public float getHearingIntensity(float[] hearerPos)- Specified by:
getHearingIntensity
in interfaceAudibleArea
-
getClosestPoint
public void getClosestPoint(float[] result, float[] hearerPos)- Specified by:
getClosestPoint
in interfaceAudibleArea
-
toString
-