public class CoordinatedEffect
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.io.Serializable> |
argMap |
protected java.lang.String |
effectName |
protected boolean |
sendSrcOid |
protected boolean |
sendTargOid |
Constructor and Description |
---|
CoordinatedEffect(java.lang.String effectName) |
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.String,java.io.Serializable> |
copyArgMap() |
CoordinatedEffectState |
generateStateObject(OID sourceOid,
OID targetOid,
Point loc,
AgisAbilityState abilityState)
this is an object factory. generates the CoordinatedEffectState object which is used when
invoke() is called.
|
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.
|
CoordinatedEffectState |
invoke(OID sourceOid,
OID targetOid)
Invokes a client coordinated effect script, originating with the sourceOid object and targetted at the targetOid object.
|
CoordinatedEffectState |
invoke(OID sourceOid,
OID targetOid,
Point loc,
AgisAbilityState abilityState) |
CoordinatedEffectState |
invoke(OID sourceOid,
OID targetOid,
Point loc,
AgisAbilityState abilityState,
java.lang.String iconName,
java.lang.Boolean displayIcon) |
CoordinatedEffectState |
invoke(OID sourceOid,
OID targetOid,
java.lang.String iconName,
java.lang.Boolean displayIcon) |
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.
|
protected java.lang.String effectName
protected java.util.Map<java.lang.String,java.io.Serializable> argMap
protected boolean sendSrcOid
protected boolean sendTargOid
public CoordinatedEffectState invoke(OID sourceOid, OID targetOid)
sourceOid
- - Object ID of the object from which this coordinated effect originates.targetOid
- - Object ID of the target object.public CoordinatedEffectState invoke(OID sourceOid, OID targetOid, java.lang.String iconName, java.lang.Boolean displayIcon)
public CoordinatedEffectState invoke(OID sourceOid, OID targetOid, Point loc, AgisAbilityState abilityState)
public CoordinatedEffectState invoke(OID sourceOid, OID targetOid, Point loc, AgisAbilityState abilityState, java.lang.String iconName, java.lang.Boolean displayIcon)
public CoordinatedEffectState generateStateObject(OID sourceOid, OID targetOid, Point loc, AgisAbilityState abilityState)
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 java.util.HashMap<java.lang.String,java.io.Serializable> copyArgMap()
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()