|
|||||||||
| Home >> All >> [ antichess overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
antichess
Class Timer

java.lang.Objectantichess.Timer
- public class Timer
- extends java.lang.Object
A timer to count down a given time.
| Field Summary | |
private boolean |
isTiming
|
private long |
temp
|
private long |
timeLeft
|
| Constructor Summary | |
Timer()
|
|
Timer(long startTime)
Initializes a timer with starting time |
|
| Method Summary | |
boolean |
getIsTiming()
See if the timer is running |
long |
getTimeLeft()
|
void |
setTimeLeft(int time)
|
void |
startTimer()
|
void |
stopTimer()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
timeLeft
private long timeLeft
isTiming
private boolean isTiming
temp
private long temp
| Constructor Detail |
Timer
public Timer(long startTime)
- Initializes a timer with starting time
Timer
public Timer()
| Method Detail |
getTimeLeft
public long getTimeLeft()
getIsTiming
public boolean getIsTiming()
- See if the timer is running
setTimeLeft
public void setTimeLeft(int time)
startTimer
public void startTimer()
stopTimer
public void stopTimer()
|
|||||||||
| Home >> All >> [ antichess overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
antichess.Timer