All Packages Class Hierarchy This Package Previous Next Index
Class kpalin.alabra.ClockListen
java.lang.Object
|
+----java.util.Observable
|
+----kpalin.alabra.ClockListen
- public class ClockListen
- extends Observable
- implements Serializable
This signals ChessPlay when player has used his given time.
- Author:
- Kimmo Palin
- See Also:
- Observable
-
notified
- Has this object been notified.
-
playerId
- Id of the player whose clock this affects.
-
ClockListen(int, Observer)
-
-
allert()
- Alerts all oberservers about reached deadline.
-
clearChanged()
-
-
getPlayer()
- Gets the players id whos clock has elapsed.
-
hasChanged()
-
-
setChanged()
-
notified
private boolean notified
- Has this object been notified.
playerId
private int playerId
- Id of the player whose clock this affects.
ClockListen
ClockListen(int side,
Observer obs)
getPlayer
public synchronized int getPlayer()
- Gets the players id whos clock has elapsed.
allert
public void allert()
- Alerts all oberservers about reached deadline.
hasChanged
public synchronized boolean hasChanged()
- Overrides:
- hasChanged in class Observable
clearChanged
protected synchronized void clearChanged()
- Overrides:
- clearChanged in class Observable
setChanged
protected synchronized void setChanged()
- Overrides:
- setChanged in class Observable
All Packages Class Hierarchy This Package Previous Next Index