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