Class SoundSourceFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.sound.SoundSourceFactory
- All Implemented Interfaces:
ConfigurableFactory
- Direct Known Subclasses:
BackgroundMusicSourceFactory
,LoopedAmbientSoundSourceFactory
,PeriodicAmbientSoundSourceFactory
,PlaySoundEntityFactory
A factory for SoundSources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
gets the radius, default to a value large enough to cover the complete zoneprotected String
gets the sound nameprotected int
gets the volume, defaulting to 100%Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface games.stendhal.server.core.config.factory.ConfigurableFactory
create
-
Constructor Details
-
SoundSourceFactory
public SoundSourceFactory()
-
-
Method Details
-
getSound
gets the sound name- Parameters:
ctx
- ConfigurableFactoryContext- Returns:
- name of sound
-
getRadius
gets the radius, default to a value large enough to cover the complete zone- Parameters:
ctx
- ConfigurableFactoryContext- Returns:
- radius
-
getVolume
gets the volume, defaulting to 100%- Parameters:
ctx
- ConfigurableFactoryContext- Returns:
- volume
-