Package games.stendhal.client.gui.trade
Class TradingController
java.lang.Object
games.stendhal.client.gui.trade.TradingController
Object for processing trade state changes and sending trading commands.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TradingController
get()
Get the trading controller instance.Get the trading window component.void
setState(IEntity user, IEntity partner, TradeState myState, TradeState partnerState)
Set the new trading state.
-
Method Details
-
getWindow
Get the trading window component.- Returns:
- trading window
-
setState
Set the new trading state.- Parameters:
user
- the trading userpartner
- the trading partnermyState
- state of the userpartnerState
- state of the trading partner
-
get
Get the trading controller instance.- Returns:
- controller instance
-