|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
vooga.gameEngine.event.TimeUpdateEvent
public class TimeUpdateEvent
An event representing when the game time is updated.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
TimeUpdateEvent(java.lang.Object source,
long dt)
Creates a TimeUpdateEvent with the given source as
the object firing the event. |
Method Summary | |
---|---|
long |
getdt()
Method for getting time since last update event was fired. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeUpdateEvent(java.lang.Object source, long dt)
TimeUpdateEvent
with the given source as
the object firing the event.
source
- is Object
firing eventdt
- is the time since last frameMethod Detail |
---|
public long getdt()
TimeUpdateEvent
or
equivalently since the last frame
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |