GP
Class TimeManager

java.lang.Object
  |
  +--GP.TimeManager
All Implemented Interfaces:
Playable

public class TimeManager
extends java.lang.Object
implements Playable


Constructor Summary
TimeManager()
           
 
Method Summary
 double GetCurrentTime()
          Returns this time manager's current time.
 void Pause()
          Pause the time managers clock.
 boolean Paused()
           
 void Play()
          Start the time manager's clock.
 boolean Playing()
           
 void SetTime(double time)
          Set time manager's absolute time
 void Stop()
          Stop the time managers clock.
 boolean Stopped()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeManager

public TimeManager()
Method Detail

Playing

public boolean Playing()

Paused

public boolean Paused()

Stopped

public boolean Stopped()

SetTime

public void SetTime(double time)
Set time manager's absolute time
Parameters:
time - is in seconds, 50.43 is 50 seconds and 43 hundreths seconds

GetCurrentTime

public double GetCurrentTime()
Returns this time manager's current time.
Specified by:
GetCurrentTime in interface Playable
Returns:
absolute time in seconds

Play

public void Play()
Start the time manager's clock. Time begins at 0 seconds, and is reset to zero if time manager has been stopped.
Specified by:
Play in interface Playable

Pause

public void Pause()
Pause the time managers clock. This does not reset the time if you begin playing again.
Specified by:
Pause in interface Playable

Stop

public void Stop()
Stop the time managers clock. This resets time to 0 if you begin playing again.
Specified by:
Stop in interface Playable