Package games.stendhal.server.events
Class SoundEvent
java.lang.Object
marauroa.common.game.Attributes
marauroa.common.game.SlotOwner
marauroa.common.game.RPEvent
games.stendhal.server.events.SoundEvent
- All Implemented Interfaces:
Cloneable
,Iterable<String>
,Serializable
A sound.
- Author:
- hendrik
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSoundEvent(SoundID id, int radius, int volume, SoundLayer layer)
Creates a new sound event using an ID with specified range and volume.SoundEvent(SoundID id, int volume, SoundLayer layer)
Creates a new sound event using an ID with a volume and infinite range.SoundEvent(SoundID id, SoundLayer layer)
Creates a new sound event using an ID with an infinite range.SoundEvent(String sound, int radius, int volume, SoundLayer layer)
Creates a new sound event with specified range and volume.SoundEvent(String sound, int volume, SoundLayer layer)
Creates a new sound event with a volume and infinite range.SoundEvent(String sound, SoundLayer layer)
Creates a new sound event with an infinite range. -
Method Summary
Methods inherited from class marauroa.common.game.RPEvent
clone, equals, fill, getName, hashCode, readObject, setOwner, toString, writeObject, writeObject
Methods inherited from class marauroa.common.game.SlotOwner
addSlot, addSlot, deserializeRPSlots, fill, getSlot, hasSlot, removeSlot, serializeRPSlots, slots, slotsIterator, writeToJson
Methods inherited from class marauroa.common.game.Attributes
add, applyDifferences, clearVisible, get, getBool, getDouble, getInt, getList, getLong, getRPClass, has, instanceOf, isEmpty, iterator, put, put, put, put, put, readFromMap, remove, resetAddedAndDeletedAttributes, setAddedAttributes, setDeletedAttributes, setRPClass, setRPClass, size, toAttributeString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SoundEvent
Creates a new sound event with an infinite range.- Parameters:
sound
- Name of sound to play.layer
- Sound layer (e. g. ambient sound).
-
SoundEvent
Creates a new sound event using an ID with an infinite range.- Parameters:
id
- SoundID to send with event.layer
- Sound layer (e. g. ambient sound).
-
SoundEvent
Creates a new sound event with a volume and infinite range.- Parameters:
sound
- Name of sound to play.volume
- Volume level.layer
- Sound layer (e. g. ambient sound).
-
SoundEvent
Creates a new sound event using an ID with a volume and infinite range.- Parameters:
id
- SoundID to send with event.volume
- Volume level.layer
- Sound layer (e. g. ambient sound).
-
SoundEvent
Creates a new sound event with specified range and volume.- Parameters:
sound
- Name of sound to play.radius
- Radius at which sound can be heard.volume
- Volume level.layer
- Sound layer (e. g. ambient sound).
-
SoundEvent
Creates a new sound event using an ID with specified range and volume.- Parameters:
id
- SoundID to send with event.radius
- Radius at which sound can be heard.volume
- Volume level.layer
- Sound layer (e. g. ambient sound).
-
-
Method Details
-
generateRPClass
public static void generateRPClass()Creates the rpclass.
-