handleMessage
public void handleMessage(Message message,
int flags)
If the message is a TargetMessage, insert it in the message
SquareQueue by player oid for processing in order and return.
If the message is a SubjectMessage, look up the client perceivers of
the subject oid, and send them the message, and increment the common
event message counter associated with this type of message and
return.
If the message is a PerceptionMessage, increment the perceptionGained
and perceptionLost counters, and insert it in the message SquareQueue
by player oid for processing in order and return.
If the message hasn't yet been handled, insert it in the message
SquareQueue by player oid for processing in order and return.
- Specified by:
handleMessage
in interface MessageCallback
- Parameters:
message
- Message sent from other agent.
flags
- Bitwise OR of MessageCallback.NO_FLAGS
, MessageCallback.RESPONSE_EXPECTED
.