Class StockMarketEntry

java.lang.Object
org.rspeer.game.service.stockmarket.StockMarketEntry

public class StockMarketEntry extends Object
  • Constructor Details

    • StockMarketEntry

      public StockMarketEntry(int itemId, int itemQuantity, int itemPrice)
      Parameters:
      itemId - The id of the item to buy or sell
      itemQuantity - The quantity of the item to buy or sell
      itemPrice - 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

      public StockMarketEntry(RSStockMarketTransaction trans)
  • Method Details

    • getItemId

      public int getItemId()
    • getItemQuantity

      public int getItemQuantity()
    • getItemPrice

      public int getItemPrice()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public StockMarketable.Type getType()
    • setType

      public void setType(StockMarketable.Type type)