Package org.rspeer.game.event
Class StockMarketEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.rspeer.event.Event<T>
-
- org.rspeer.game.event.GameEvent<RSStockMarketTransaction>
-
- org.rspeer.game.event.StockMarketEvent
-
- All Implemented Interfaces:
Serializable
public class StockMarketEvent extends GameEvent<RSStockMarketTransaction>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StockMarketEvent(int index, RSStockMarketTransaction source, RSStockMarketTransaction previous)
Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
RSStockMarketTransaction
getPrevious()
-
Methods inherited from class org.rspeer.event.Event
consume, getSource, isConsumed
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
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 Detail
-
getIndex
public int getIndex()
-
getPrevious
public RSStockMarketTransaction getPrevious()
- Returns:
- Offer object before it was changed. Can be null if no prev offer
-
-