org.moyoman.comm.client
Class ValidatedPlayer

java.lang.Object
  |
  +--org.moyoman.comm.client.Player
        |
        +--org.moyoman.comm.client.ValidatedPlayer
Direct Known Subclasses:
MoyomanPlayer

public abstract class ValidatedPlayer
extends Player

Any class which extends this abstract class can be used as one of the players in a game of Go. These classes validate their own moves, and so do not need any external error checking. An example of this class is the Moyoman back-end sever.


Field Summary
 
Fields inherited from class org.moyoman.comm.client.Player
color, handicap
 
Constructor Summary
ValidatedPlayer(Color c, Handicap h)
          Create the ValidatedPlayer object.
 
Method Summary
 boolean isValidatedUser()
          All derived classes are validated, so return true.
 
Methods inherited from class org.moyoman.comm.client.Player
derivedMakeMove, derivedRequestMove, getColor, getGameRecord, getHandicap, getId, getIdentifyingInfo, getMoveNumber, isSelfInitializingUser, makeMove, makeMoveNoEvents, registerEndOfGameMoveListener, registerMakeMoveListener, registerRequestMoveListener, requestMove, unregisterEndOfGameListeners, unregisterMakeMoveListeners, unregisterRequestMoveListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatedPlayer

public ValidatedPlayer(Color c,
                       Handicap h)
                throws InternalErrorException
Create the ValidatedPlayer object.

Parameters:
c - The color of the player.
h - The handicap of the game.
Throws:
InternalErrorException - Thrown if the operation fails for any reason.
Method Detail

isValidatedUser

public boolean isValidatedUser()
All derived classes are validated, so return true.

Specified by:
isValidatedUser in class Player
Returns:
true, since all derived classes are validated.