Package marauroa.server.game.dbcommand

Examples of marauroa.server.game.dbcommand.LoadCharacterCommand


   *
   * @param rpMan RPServerManager
   * @param data LoadCharacterCommand
   */
  public void handleDelayedEvent(RPServerManager rpMan, Object data) {
    LoadCharacterCommand cmd = (LoadCharacterCommand) data;
    RPObject object = cmd.getObject();
    int clientid = cmd.getClientid();

    PlayerEntry entry = playerContainer.get(clientid);
    if (entry == null) {
      return;
    }

    // does the character exist and belong to the user?
    if (object == null) {
      logger.warn("could not load object for character " + entry.character + " for user " + cmd.getUsername() + " from database");
      rejectClient(cmd.getChannel(), clientid, entry);
      return;
    }

    /* We restore back the character to the world */
    playerContainer.getLock().requestWriteLock();
    completeLoadingCharacterIntoWorld(rpMan, clientid, cmd.getChannel(), entry, object);
    playerContainer.getLock().releaseLock();
  }
View Full Code Here

TOP

Related Classes of marauroa.server.game.dbcommand.LoadCharacterCommand

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.