|
|||||||||
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.agis.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.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. |
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 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()
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |