public class TargetMessage extends Message
Modifier and Type | Field and Description |
---|---|
protected OID |
subject |
protected OID |
target |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
getEnqueueTime, getMsgId, getMsgInstanceOid, getMsgType, getSenderName, isRPC, setEnqueueTime, setEnqueueTime, setMsgInstanceOid, setMsgType, toBytes, ToString
public TargetMessage()
public TargetMessage(MessageType msgType)
public TargetMessage(MessageType msgType, OID target, OID subject)
public TargetMessage(MessageType msgType, OID target)
public java.lang.String toString()
toString
in class java.lang.Object
public OID getTarget()
public void setTarget(OID playerOid)
public OID getSubject()
public void setSubject(OID subject)