Package org.rspeer.game.event
Class TargetEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.rspeer.event.Event<T>
-
- org.rspeer.game.event.GameEvent<PathingEntity<?>>
-
- org.rspeer.game.event.TargetEvent
-
- All Implemented Interfaces:
Serializable
public class TargetEvent extends GameEvent<PathingEntity<?>>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TargetEvent(PathingEntity source, int previous, int current)Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrent()intgetPrevious()PathingEntity<?>getTarget()-
Methods inherited from class org.rspeer.event.Event
consume, getSource, isConsumed
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
TargetEvent
public TargetEvent(PathingEntity source, int previous, int current)
Constructs a prototypical Event.- Parameters:
source- The object on which the Event initially occurred.- Throws:
IllegalArgumentException- if source is null.
-
-
Method Detail
-
getPrevious
public int getPrevious()
-
getCurrent
public int getCurrent()
-
getTarget
public PathingEntity<?> getTarget()
-
-