Package org.pokenet.server.network.message

Examples of org.pokenet.server.network.message.TradeNpcSpeechMessage


      /* Can trade */
      m_trade = new Trade(this, p);
      p.setTrade(m_trade);
      m_trade.setOffer(this, 0, 0);
      TcpProtocolHandler.writeMessage(m_player.getTcpSession(),
          new TradeNpcSpeechMessage("I'm looking for a " + m_requestedSpecies +
              ". Want to trade one for my " + m_party[0].getName() + "?"));
    } else {
      /* Can't trade */
      TcpProtocolHandler.writeMessage(m_player.getTcpSession(),
          new TradeNpcSpeechMessage("I can't trade with you right now"));
    }
  }
View Full Code Here


  public void finishTrading() {
    m_trade = null;
    m_tradeAccepted = false;
    TcpProtocolHandler.writeMessage(m_player.getTcpSession(),
        new TradeNpcSpeechMessage("Thanks! It's just what I was looking for!"));
  }
View Full Code Here

      //This is the Pokemon the TradeChar wanted
      setTradeAccepted(true);
    } else {
      //This is the wrong Pokemon
      TcpProtocolHandler.writeMessage(m_player.getTcpSession(),
          new TradeNpcSpeechMessage("This is not what I'm looking for!\n" +
          "Come back when you find the right Pokemon!"));
    }
  }
View Full Code Here

TOP

Related Classes of org.pokenet.server.network.message.TradeNpcSpeechMessage

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.