public class TimerEvent extends Event<TimerListener>
Event.Type<H>
Modifier and Type | Field and Description |
---|---|
int |
lastTick
The timestamp of the last tick.
|
int |
millis
The timer interval in milliseconds.
|
TimerEvent |
next
The next timer in the linked list.
|
boolean |
triggered
a flag set when the timer event is being posted.
|
static int |
TRIGGERED
The event type for a triggered timer
|
Constructor and Description |
---|
TimerEvent()
Constructs a new TimerEvent, setting the type to TRIGGERED.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(TimerListener listener) |
void |
postpone() |
java.lang.String |
toString() |
clearQueue, getNextAvailableEventId, isAvailable, touch
public static final int TRIGGERED
public int millis
public int lastTick
public TimerEvent next
public boolean triggered
public TimerEvent()
public java.lang.String toString()
toString
in class Event<TimerListener>
public void postpone()
public void dispatch(TimerListener listener)
dispatch
in class Event<TimerListener>