public abstract class Event extends Object implements Comparable<Event>, Serializable
Constructor and Description |
---|
Event()
Called by the game to create a new Event.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Event event)
Compares this event to another event regarding precedence.
|
int |
getPriority()
Returns the priority of this event.
|
long |
getTime()
Returns the time this event occurred.
|
public int compareTo(Event event)
compareTo
in interface Comparable<Event>
event
- the event to compare to this event.public int getPriority()
public final long getTime()