Package org.rspeer.game.event
Class StockMarketEvent
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionStockMarketEvent
(int index, RSStockMarketTransaction source, RSStockMarketTransaction previous) Constructs a prototypical Event. -
Method Summary
Methods inherited from class org.rspeer.event.Event
consume, getSource, isConsumed
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
StockMarketEvent
public StockMarketEvent(int index, RSStockMarketTransaction source, RSStockMarketTransaction previous) Constructs a prototypical Event.- Parameters:
index
-source
- The object on which the Event initially occurred.- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Details
-
getIndex
public int getIndex() -
getPrevious
- Returns:
- Offer object before it was changed. Can be null if no prev offer
-