Package games.stendhal.server.events

Examples of games.stendhal.server.events.TradeStateChangeEvent


   * inform both clients about the current state of trading.
   */
  private void tellClients() {
    Player partner = SingletonRepository.getRuleProcessor().getPlayer(partnerName);
    if (partner == null) {
      player.addEvent(new TradeStateChangeEvent(-1, tradeState, TradeState.NO_ACTIVE_TRADE));
    } else {
      player.addEvent(new TradeStateChangeEvent(partner.getInt("id"), tradeState, partner.getTradeState()));
      partner.addEvent(new TradeStateChangeEvent(player.getInt("id"), partner.getTradeState(), tradeState));
    }
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.events.TradeStateChangeEvent

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.