Examples of lostBattle()


Examples of org.pokenet.server.backend.entity.PlayerChar.lostBattle()

          if(p.getBattleField() instanceof PvPBattleField) {
            ((PvPBattleField) p.getBattleField()).disconnect(p.getBattleId());
          }
          p.setBattleField(null);
          p.setBattling(false);
          p.lostBattle();
        }
        /* If trading, end the trade */
        if(p.isTrading()) {
          p.getTrade().endTrade();
        }
View Full Code Here

Examples of org.pokenet.server.backend.entity.PlayerChar.lostBattle()

     */
    try {
      PlayerChar p = (PlayerChar) session.getAttribute("player");
      if(p != null) {
        if (p.isBattling())
          p.lostBattle();
        m_logoutManager.queuePlayer(p);
        GameServer.getServiceManager().getMovementService().removePlayer(p.getName());
        m_players.remove(p);
      }
      if(!(t instanceof IOException) || session.isConnected() || !session.isClosing())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.