Package org.pokenet.server.network.message.battle

Examples of org.pokenet.server.network.message.battle.FaintMessage


    if (trainer == 0 && m_participatingPokemon.contains(getParty(trainer)[idx])) {
      m_participatingPokemon.remove(getParty(trainer)[idx]);
    }
    if (m_player != null)
      TcpProtocolHandler.writeMessage(m_player.getTcpSession(),
          new FaintMessage(getParty(trainer)[idx].getSpeciesName()));
  }
View Full Code Here


  @Override
  public void informPokemonFainted(int trainer, int idx) {
    if(m_players != null) {
      TcpProtocolHandler.writeMessage(m_players[0].getTcpSession(),
          new FaintMessage(getParty(trainer)[idx].getSpeciesName()));
      TcpProtocolHandler.writeMessage(m_players[1].getTcpSession(),
          new FaintMessage(getParty(trainer)[idx].getSpeciesName()));
    }
  }
View Full Code Here

  @Override
  public void informPokemonFainted(int trainer, int idx) {
    if (m_player != null)
      TcpProtocolHandler.writeMessage(m_player.getTcpSession(),
          new FaintMessage(getParty(trainer)[idx].getSpeciesName()));
  }
View Full Code Here

TOP

Related Classes of org.pokenet.server.network.message.battle.FaintMessage

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.