Class StockMarketEntry
java.lang.Object
org.rspeer.game.service.stockmarket.StockMarketEntry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
int
getType()
void
setTimestamp
(int timestamp) FOR INTERNAL USE ONLYvoid
setType
(StockMarketable.Type type) toString()
-
Constructor Details
-
StockMarketEntry
public StockMarketEntry(int itemId, int itemQuantity, int itemPrice) - Parameters:
itemId
- The id of the item to buy or sellitemQuantity
- The quantity of the item to buy or sellitemPrice
- The price of the item to buy or sell. A negative value indicates that it should be a percent increase by n. -3 will click the +5/-5% button 3 times
-
StockMarketEntry
-
-
Method Details
-
getItemId
public int getItemId() -
getItemQuantity
public int getItemQuantity() -
getItemPrice
public int getItemPrice() -
equals
-
toString
-
getTimestamp
public int getTimestamp()- Returns:
- The time this offer was placed, in ticks.
Integer.MIN_VALUE
if the offer isn't placed yet
-
setTimestamp
public void setTimestamp(int timestamp) FOR INTERNAL USE ONLY- Parameters:
timestamp
- The time this offer was placed, in ticks.Integer.MIN_VALUE
if the offer isn't placed yet
-
getType
-
setType
-