Class StockMarketTransaction
- java.lang.Object
-
- org.rspeer.game.adapter.Adapter<RSStockMarketTransaction>
-
- org.rspeer.game.adapter.component.StockMarketTransaction
-
- All Implemented Interfaces:
StockMarketable
public class StockMarketTransaction extends Adapter<RSStockMarketTransaction> implements StockMarketable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StockMarketTransaction.CollectionAction
static class
StockMarketTransaction.Progress
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.component.StockMarketable
StockMarketable.Type
-
-
Field Summary
Fields Modifier and Type Field Description static int
FINISH_MASK
static int
PROGRESS_MASK
static int
SELLING_MASK
-
Constructor Summary
Constructors Constructor Description StockMarketTransaction(RSStockMarketTransaction provider, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
abort()
boolean
collect(StockMarketTransaction.CollectionAction action)
int
getAmountTransferred()
int
getIndex()
Item
getItem()
int
getItemPrice()
int
getItemQuantity()
StockMarketTransaction.Progress
getProgress()
StockMarketable.Type
getType()
int
getWealthTransferred()
String
toString()
-
Methods inherited from class org.rspeer.game.adapter.Adapter
getProvider, validate
-
-
-
-
Field Detail
-
PROGRESS_MASK
public static final int PROGRESS_MASK
- See Also:
- Constant Field Values
-
FINISH_MASK
public static final int FINISH_MASK
- See Also:
- Constant Field Values
-
SELLING_MASK
public static final int SELLING_MASK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StockMarketTransaction
public StockMarketTransaction(RSStockMarketTransaction provider, int index)
-
-
Method Detail
-
getIndex
public int getIndex()
-
getItem
public Item getItem()
-
getItemPrice
public int getItemPrice()
-
getWealthTransferred
public int getWealthTransferred()
-
getAmountTransferred
public int getAmountTransferred()
-
getItemQuantity
public int getItemQuantity()
-
getType
public StockMarketable.Type getType()
- Specified by:
getType
in interfaceStockMarketable
-
getProgress
public StockMarketTransaction.Progress getProgress()
-
abort
public boolean abort()
-
collect
public boolean collect(StockMarketTransaction.CollectionAction action)
-
-