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.
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 |
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.
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.