p2.tictactoe.gui
Class GUIplayer

java.lang.Object
  extended by p2.tictactoe.InactivePlayer
      extended by p2.tictactoe.gui.GUIplayer
All Implemented Interfaces:
Player

public class GUIplayer
extends InactivePlayer

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.

Version:
$Id: GUIplayer.java,v 1.3 2005/02/26 17:23:23 oscar Exp $
Author:
$Author: oscar $

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

GUIplayer

public GUIplayer(char mark)
Method Detail

move

public void move(int col,
                 int row)
          throws InvalidMoveException
Attempt to make the given move in the associated game.

Throws:
InvalidMoveException