tictactoe
Class AppletPlayer

java.lang.Object
  |
  +--tictactoe.Asserter
        |
        +--tictactoe.InactivePlayer
              |
              +--tictactoe.AppletPlayer

public class AppletPlayer
extends InactivePlayer

Manage interaction with user. An Appletplayer attempts to make a move it is the current player and when a PlaceListener detects a mouse click.

Version:
2.0 1999-03-26
Author:
Oscar.Nierstrasz@acm.org
See Also:
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

AppletPlayer

public AppletPlayer(char mark)
Method Detail

move

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