|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectui.TimerBox
public class TimerBox
| Constructor Summary | |
|---|---|
TimerBox(GameThread g)
Constructor. |
|
| Method Summary | |
|---|---|
Stopwatch |
getBlackWatch()
Returns the Stopwatch object keeping track of black's time left. |
Stopwatch |
getWhiteWatch()
Returns the Stopwatch object keeping track of white's time left. |
void |
setWatches(int whiteTime,
int blackTime)
Resets the TimerBox's Stopwatches. |
void |
switchClockTo(Color color)
Switches the clock to the specified color. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerBox(GameThread g)
| Method Detail |
|---|
public void setWatches(int whiteTime,
int blackTime)
public void switchClockTo(Color color)
public Stopwatch getWhiteWatch()
public Stopwatch getBlackWatch()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||