vooga.gameEngine.event
Class TimeUpdateEvent

java.lang.Object
  extended by java.util.EventObject
      extended by vooga.gameEngine.event.TimeUpdateEvent
All Implemented Interfaces:
java.io.Serializable

public class TimeUpdateEvent
extends java.util.EventObject

An event representing when the game time is updated.

Author:
Justin C. Klaassen
See Also:
Serialized Form

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

TimeUpdateEvent

public TimeUpdateEvent(java.lang.Object source,
                       long dt)
Creates a TimeUpdateEvent with the given source as the object firing the event.

Parameters:
source - is Object firing event
dt - is the time since last frame
Method Detail

getdt

public long getdt()
Method for getting time since last update event was fired.

Returns:
the time since the last TimeUpdateEvent or equivalently since the last frame