Package org.rspeer.game.component
Class Trade
- java.lang.Object
-
- org.rspeer.game.component.Trade
-
public class Trade extends Object
Provides operations for the games trading interfaces
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Trade.Incoming
static class
Trade.Outgoing
static class
Trade.View
-
Constructor Summary
Constructors Constructor Description Trade()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
accept()
static boolean
decline()
static Trade.View
getView()
static boolean
offer(Function<ItemQuery,Item> item, int amount)
Offers an item with the given amount.static boolean
remove(Function<ItemQuery,Item> item, int amount)
Removes an item with the given amount.
-
-
-
Method Detail
-
getView
public static Trade.View getView()
-
offer
public static boolean offer(Function<ItemQuery,Item> item, int amount)
Offers an item with the given amount. If the quantity is>=
the item quantity, the All option will be used
-
remove
public static boolean remove(Function<ItemQuery,Item> item, int amount)
Removes an item with the given amount. If the quantity is>=
the item quantity, the All option will be used
-
accept
public static boolean accept()
-
decline
public static boolean decline()
-
-