Package games.stendhal.common

Examples of games.stendhal.common.TradeState


    super(name);
  }

  @Override
  public boolean isReachableForTakingThingsOutOfBy(final Entity entity) {
    TradeState tradeState = ((Player) getOwner()).getTradeState();
    if (tradeState == TradeState.NO_ACTIVE_TRADE || tradeState == TradeState.OFFERING_TRADE) {
      setErrorMessage("You are not trading with someone at the moment.");
      return false;
    }
    if (tradeState != TradeState.MAKING_OFFERS) {
View Full Code Here


   */
  @Override
  public void execute() {
    try {
      IEntity partner = findPartner();
      TradeState myState = TradeState.valueOf(event.get("user_trade_state"));
      TradeState partnerState = TradeState.valueOf(event.get("partner_trade_state"));
     
      TradingController.get().setState(entity, partner, myState, partnerState);
    } catch (RuntimeException e) {
      logger.error("Failed to process trade state change. Event: " + event, e);
    }
View Full Code Here

TOP

Related Classes of games.stendhal.common.TradeState

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.