Package org.rspeer.game.event
Class TileHighlightEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.rspeer.event.Event<T>
-
- org.rspeer.game.event.GameEvent<Position>
-
- org.rspeer.game.event.TileHighlightEvent
-
- All Implemented Interfaces:
Serializable
public class TileHighlightEvent extends GameEvent<Position>
An event that is dispatched when a tile is highlighted or unhighlighted. UseisMarked()
to get the state- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TileHighlightEvent(Position source, boolean marked)
Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMarked()
-
Methods inherited from class org.rspeer.event.Event
consume, getSource, isConsumed
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
TileHighlightEvent
public TileHighlightEvent(Position source, boolean marked)
Constructs a prototypical Event.- Parameters:
source
- The object on which the Event initially occurred.- Throws:
IllegalArgumentException
- if source is null.
-
-