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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgets the radius, default to a value large enough to cover the complete zoneprotected Stringgets the sound nameprotected intgets the volume, defaulting to 100%Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-