|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.msgsys.Message
atavism.msgsys.SubjectMessage
atavism.server.plugins.WorldManagerClient.SoundMessage
public static class WorldManagerClient.SoundMessage
Control sounds played on the client. A sound message is a set of
sound start commands and sound stop commands. Additionally, the
message may have a clear all sound flag. The sounds are processed
in the order: clear flag, stop commands, start commands.
A sound message describes either point sounds or ambient sounds.
Point sounds emit from a single object and attentuate over
distance. Ambient sounds have no source object and do not
attenuate.
The 'add' methods start sounds, the 'remove' methods
stop sounds.
Start sounds are described with a SoundData
object.
Stop sounds are identified by their (file) name.
Field Summary | |
---|---|
static byte |
soundTypeAmbient
|
static byte |
soundTypePoint
|
Fields inherited from class atavism.msgsys.SubjectMessage |
---|
oid |
Constructor Summary | |
---|---|
WorldManagerClient.SoundMessage()
|
|
WorldManagerClient.SoundMessage(OID oid)
|
Method Summary | |
---|---|
void |
addSound(SoundData data)
Add a sound to start. |
void |
addSound(java.lang.String fileName,
boolean looping)
Add a sound. |
void |
addSound(java.lang.String fileName,
boolean looping,
float gain)
Add a sound. |
boolean |
getClearFlag()
Get the clear flag. |
java.util.List<SoundData> |
getSoundData()
Get the sounds to start. |
OID |
getTarget()
|
byte |
getType()
Get the sound message type. |
void |
removeSound(java.lang.String fileName)
Stop a sound. |
void |
setClearFlag(boolean val)
Set the clear flag. |
void |
setSoundData(java.util.List<SoundData> soundData)
Set the sounds to start. |
void |
setTarget(OID target)
|
void |
setType(byte type)
Set the sound message type. |
AOByteBuffer |
toBuffer()
|
java.lang.String |
toString()
|
Methods inherited from class atavism.msgsys.SubjectMessage |
---|
getSubject, setSubject |
Methods inherited from class atavism.msgsys.Message |
---|
getEnqueueTime, getMsgId, getMsgType, getSenderName, isRPC, setEnqueueTime, setEnqueueTime, setMsgType, toBytes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte soundTypePoint
public static final byte soundTypeAmbient
Constructor Detail |
---|
public WorldManagerClient.SoundMessage()
public WorldManagerClient.SoundMessage(OID oid)
Method Detail |
---|
public OID getTarget()
getTarget
in interface HasTarget
public void setTarget(OID target)
setTarget
in interface HasTarget
public void setSoundData(java.util.List<SoundData> soundData)
public java.util.List<SoundData> getSoundData()
public void addSound(SoundData data)
public void setType(byte type)
public byte getType()
public void setClearFlag(boolean val)
public boolean getClearFlag()
public void addSound(java.lang.String fileName, boolean looping)
fileName
- the sound namelooping
- start a looping sound. Sets the "Loop"
property to "true" or "false".public void addSound(java.lang.String fileName, boolean looping, float gain)
fileName
- the sound namelooping
- start a looping sound. Sets the "Loop"
property to "true" or "false".gain
- the initial sound gain (volume). Ranges from 0.0
to 1.0.public void removeSound(java.lang.String fileName)
public java.lang.String toString()
toString
in class SubjectMessage
public AOByteBuffer toBuffer()
toBuffer
in interface ClientMessage
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |