|
|||||||||
| Version 1.5 | APIs subject to change! | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmultiverse.mars.objects.CoordinatedEffect
public class CoordinatedEffect
Use this class to configure and invoke coordinated effects scripts from the server.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.io.Serializable> |
argMap
|
protected java.lang.String |
effectName
|
protected boolean |
sendSrcOid
|
protected boolean |
sendTargOid
|
| Constructor Summary | |
|---|---|
CoordinatedEffect(java.lang.String effectName)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getArgument(java.lang.String argName)
Get the value of an argument that will be passed to the effects script when it is invoked on the client. |
java.lang.String |
getEffectName()
Get the name of the coordinated effect script to invoke. |
multiverse.mars.objects.CoordinatedEffect.State |
invoke(java.lang.Long sourceOid,
java.lang.Long targetOid)
Invokes a client coordinated effect script, originating with the sourceOid object and targetted at the targetOid object. |
void |
putArgument(java.lang.String argName,
java.io.Serializable argValue)
Adds an argument that will be passed to the effects script when it is invoked on the client. |
boolean |
sendSourceOid()
Sets whether to send the sourceOid parameter to the client coordinated effect script. |
void |
sendSourceOid(boolean val)
Sets whether to send the sourceOid parameter to the client coordinated effect script. |
boolean |
sendTargetOid()
Gets whether the targetOid parameter will be sent to the client coordinated effect script. |
void |
sendTargetOid(boolean val)
Sets whether to send the targetOid parameter to the client coordinated effect script. |
void |
setEffectName(java.lang.String effectName)
Sets the name of the coordinated effect script to invoke. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String effectName
protected java.util.Map<java.lang.String,java.io.Serializable> argMap
protected boolean sendSrcOid
protected boolean sendTargOid
| Constructor Detail |
|---|
public CoordinatedEffect(java.lang.String effectName)
| Method Detail |
|---|
public multiverse.mars.objects.CoordinatedEffect.State invoke(java.lang.Long sourceOid,
java.lang.Long targetOid)
sourceOid - - Object ID of the object from which this coordinated effect originates.targetOid - - Object ID of the target object.
public void setEffectName(java.lang.String effectName)
effectName - - Name of the coordinated effect script.public java.lang.String getEffectName()
public void putArgument(java.lang.String argName,
java.io.Serializable argValue)
argName - - Name of the script argument.argValue - - Value of the argument. Must be one of: String, Boolean, Integer, Long, Float, Point, Quaternion.public java.lang.Object getArgument(java.lang.String argName)
argName - - Name of the script argument.
public void sendSourceOid(boolean val)
val - - Whether or not to send the sourceOid parameter to the client coordinated effect script.public boolean sendSourceOid()
public void sendTargetOid(boolean val)
val - - true if you want to send the taregetOid parameter to the client coordinated effect script.public boolean sendTargetOid()
|
Copyright © 2008 The Multiverse Network, Inc. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||