Atavism Version 2018.1AGIS API

atavism.msgsys
Class TargetMessage

java.lang.Object
  extended by atavism.msgsys.Message
      extended by atavism.msgsys.TargetMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CombatClient.AbilityUpdateMessage, InstanceClient.InstanceEntryReqMessage, ObjectTracker.NotifyAggroRadiusMessage, ObjectTracker.NotifyReactionRadiusMessage, ProxyPlugin.AddStaticPerceptionMessage, WorldManagerClient.FogMessage, WorldManagerClient.FreeObjectMessage, WorldManagerClient.FreeRoadMessage, WorldManagerClient.NewDirLightMessage, WorldManagerClient.RoadMessage, WorldManagerClient.SetAmbientLightMessage, WorldManagerClient.TargetedComMessage, WorldManagerClient.TargetedPropertyMessage

public class TargetMessage
extends Message

A message to an object (the target) about an object (the subject). Target and subject are identified by OID.

See Also:
Serialized Form

Field Summary
protected  OID subject
           
protected  OID target
           
 
Constructor Summary
TargetMessage()
           
TargetMessage(MessageType msgType)
          Create message of the given message type.
TargetMessage(MessageType msgType, OID target)
          Create message of the given message type, target, but no subject.
TargetMessage(MessageType msgType, OID target, OID subject)
          Create message of the given message type, target, and subject.
 
Method Summary
 OID getSubject()
          Get the message subject.
 OID getTarget()
          Get the message Target.
 void setSubject(OID subject)
          Set the message subject OID.
 void setTarget(OID playerOid)
          Set the message target OID.
 java.lang.String toString()
           
 
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

target

protected OID target

subject

protected OID subject
Constructor Detail

TargetMessage

public TargetMessage()

TargetMessage

public TargetMessage(MessageType msgType)
Create message of the given message type.


TargetMessage

public TargetMessage(MessageType msgType,
                     OID target,
                     OID subject)
Create message of the given message type, target, and subject.


TargetMessage

public TargetMessage(MessageType msgType,
                     OID target)
Create message of the given message type, target, but no subject.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTarget

public OID getTarget()
Get the message Target.

Returns:
OID

setTarget

public void setTarget(OID playerOid)
Set the message target OID.


getSubject

public OID getSubject()
Get the message subject.

Returns:
OID

setSubject

public void setSubject(OID subject)
Set the message subject OID.



Copyright © 2018 Dragonsan Studios Sp. z o.o.