Class TradingController

java.lang.Object
games.stendhal.client.gui.trade.TradingController

public final class TradingController extends Object
Object for processing trade state changes and sending trading commands.
  • Method Details

    • getWindow

      public JComponent getWindow()
      Get the trading window component.
      Returns:
      trading window
    • setState

      public void setState(IEntity user, IEntity partner, TradeState myState, TradeState partnerState)
      Set the new trading state.
      Parameters:
      user - the trading user
      partner - the trading partner
      myState - state of the user
      partnerState - state of the trading partner
    • get

      public static TradingController get()
      Get the trading controller instance.
      Returns:
      controller instance