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 classStockMarketTransaction.CollectionActionstatic classStockMarketTransaction.Progress-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.component.StockMarketable
StockMarketable.Type
-
-
Field Summary
Fields Modifier and Type Field Description static intFINISH_MASKstatic intPROGRESS_MASKstatic intSELLING_MASK
-
Constructor Summary
Constructors Constructor Description StockMarketTransaction(RSStockMarketTransaction provider, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()booleancollect(StockMarketTransaction.CollectionAction action)intgetAmountTransferred()intgetIndex()ItemgetItem()intgetItemPrice()intgetItemQuantity()StockMarketTransaction.ProgressgetProgress()StockMarketable.TypegetType()intgetWealthTransferred()StringtoString()-
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:
getTypein interfaceStockMarketable
-
getProgress
public StockMarketTransaction.Progress getProgress()
-
abort
public boolean abort()
-
collect
public boolean collect(StockMarketTransaction.CollectionAction action)
-
-