Package marauroa.common.net.message

Examples of marauroa.common.net.message.MessageC2SKeepAlive


          /*
           * Only once each 30 perceptions we tell that we are alive.
           */
          if (perceptionsCount % 30 + 1 == 30) {
            MessageC2SKeepAlive msgAlive = new MessageC2SKeepAlive();
            netMan.addMessage(msgAlive);
          }

          logger.debug("Processing Message Perception");
          MessageS2CPerception msgPer = (MessageS2CPerception) msg;
View Full Code Here


  /**
   * sends a KeepAliveMessage, this is automatically done in game, but you may
   * be required to call this method very five minutes in pre game.
   */
  public void sendKeepAlive() {
    MessageC2SKeepAlive msg = new MessageC2SKeepAlive();
    netMan.addMessage(msg);
  }
View Full Code Here

   * @param message
   *            the keep alive message
   */
  @Override
  public void process(Message message) {
    MessageC2SKeepAlive alive = (MessageC2SKeepAlive) message;
    try {
      int clientid = alive.getClientID();
      PlayerEntry entry = playerContainer.get(clientid);

      // verify event
      if (!isValidEvent(alive, entry, ClientState.GAME_BEGIN, ClientState.LOGIN_COMPLETE)) {
        return;
View Full Code Here

TOP

Related Classes of marauroa.common.net.message.MessageC2SKeepAlive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.