|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tictactoe.Asserter | +--tictactoe.InactivePlayer | +--tictactoe.AppletPlayer
Manage interaction with user. An Appletplayer attempts to make a move it is the current player and when a PlaceListener detects a mouse click.
PlaceListener
Fields inherited from class tictactoe.InactivePlayer |
_game |
Constructor Summary | |
AppletPlayer(char mark)
|
Method Summary | |
void |
move(int col,
int row)
Attempt to make the given move in the associated game. |
Methods inherited from class tictactoe.InactivePlayer |
isNobody,
mark,
setGame,
toString |
Methods inherited from class tictactoe.Asserter |
assert |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AppletPlayer(char mark)
Method Detail |
public void move(int col, int row) throws AssertionException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |