Package marauroa.server.game.dbcommand

Examples of marauroa.server.game.dbcommand.LoadAllActiveCharactersCommand


   *
   * @param rpMan ignored
   * @param data LoadAllCharactersCommand
   */
  public void handleDelayedEvent(RPServerManager rpMan, Object data) {
    LoadAllActiveCharactersCommand cmd = (LoadAllActiveCharactersCommand) data;
    Map<String, RPObject> characters = cmd.getCharacters();
    int clientid = cmd.getClientid();
    SocketChannel channel = cmd.getChannel();
    PlayerEntry entry = PlayerEntryContainer.getContainer().get(channel);

    // entry is null if the player has timed out during an extremely very long turn overflow
    if (entry != null) {
      entry.characterCounter = characters.keySet().size();
View Full Code Here


      /*
       * Build player character list and send it to client
       */
      if (sendListOfCharacters) {
        DBCommand command = new LoadAllActiveCharactersCommand(username,
            new SendCharacterListHandler(netMan, protocolVersion), clientid, channel,
            protocolVersion);
        DBCommandQueue.get().enqueue(command);
      }
    } else {
View Full Code Here

    msgServerInfo.setClientID(clientid);
    msgServerInfo.setProtocolVersion(protocolVersion);
    netMan.sendMessage(msgServerInfo);

    /* Build player character list and send it to client */
    DBCommand command = new LoadAllActiveCharactersCommand(entry.username,
        new SendCharacterListHandler(netMan, protocolVersion),
        clientid, channel, protocolVersion);
    DBCommandQueue.get().enqueue(command);

    entry.state = ClientState.LOGIN_COMPLETE;
View Full Code Here

TOP

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

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.