Atavism Version 2018.1AGIS API

atavism.server.plugins
Class ProxyPlugin.PlayerMessageCallback

java.lang.Object
  extended by atavism.server.plugins.ProxyPlugin.PlayerMessageCallback
All Implemented Interfaces:
MessageCallback
Enclosing class:
ProxyPlugin

public class ProxyPlugin.PlayerMessageCallback
extends java.lang.Object
implements MessageCallback

The Handler for player-specific messages coming in from other plugins.


Field Summary
 
Fields inherited from interface atavism.msgsys.MessageCallback
NO_FLAGS, RESPONSE_EXPECTED
 
Constructor Summary
ProxyPlugin.PlayerMessageCallback()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyPlugin.PlayerMessageCallback

public ProxyPlugin.PlayerMessageCallback()
Method Detail

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.


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