Class StockMarketOffer
- java.lang.Object
-
- org.rspeer.game.component.stockmarket.StockMarketOffer
-
- All Implemented Interfaces:
StockMarketable
public class StockMarketOffer extends Object implements StockMarketable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StockMarketOffer.PriceChange
-
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.component.StockMarketable
StockMarketable.Type
-
-
Constructor Summary
Constructors Constructor Description StockMarketOffer(StockMarketable.Type type, int itemId, IntToIntFunction price, IntSupplier quantity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<StockMarketTransaction>
createAndCollectAll(boolean toBank)
CompletableFuture<StockMarketTransaction>
createAndCollectTransaction(StockMarketTransaction.CollectionAction action)
CompletableFuture<StockMarketTransaction>
createTransaction()
int
getItemId()
StockMarketTransaction
getTransaction()
StockMarketable.Type
getType()
-
-
-
Constructor Detail
-
StockMarketOffer
public StockMarketOffer(StockMarketable.Type type, int itemId, IntToIntFunction price, IntSupplier quantity)
-
-
Method Detail
-
getItemId
public int getItemId()
-
getType
public StockMarketable.Type getType()
- Specified by:
getType
in interfaceStockMarketable
-
createTransaction
public CompletableFuture<StockMarketTransaction> createTransaction()
-
createAndCollectTransaction
public CompletableFuture<StockMarketTransaction> createAndCollectTransaction(StockMarketTransaction.CollectionAction action)
-
createAndCollectAll
public CompletableFuture<StockMarketTransaction> createAndCollectAll(boolean toBank)
-
getTransaction
public StockMarketTransaction getTransaction()
-
-