Class StockMarketEntry
java.lang.Object
org.rspeer.game.service.stockmarket.StockMarketEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintintgetType()inthashCode()voidsetItemQuantity(int itemQuantity) voidsetTimestamp(int timestamp) FOR INTERNAL USE ONLYvoidsetType(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() -
setItemQuantity
public void setItemQuantity(int itemQuantity) -
getItemPrice
public int getItemPrice() -
equals
-
hashCode
-
toString
-
getTimestamp
public int getTimestamp()- Returns:
- The time this offer was placed, in ticks.
Integer.MIN_VALUEif 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_VALUEif the offer isn't placed yet
-
getType
-
setType
-