|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgecco.server.clock.TimeString
Description of the Class
Constructor Summary | |
TimeString(Clock clock)
Creates a new TimeString object which uses the given clock. |
Method Summary | |
static String |
getBasicTimeUnit()
Returns the name of the basic unit of game time. |
String |
getGameTime()
Returns a String specifying the current game time. |
String |
getRealTime()
Returns a String specifying the current real time. |
static String |
getTimeString(double seconds,
boolean isFrozen)
Returns a String specifying the given time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeString(Clock clock)
clock
- The clock used to find out what time it is.Method Detail |
public String getGameTime()
public String getRealTime()
public static String getBasicTimeUnit()
public static String getTimeString(double seconds, boolean isFrozen)
seconds
- The current time, in seconds since the beginning of
time.isFrozen
- Description of Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |