|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.moyoman.comm.client.MoveValidator
This class validates moves for players which do not do so themselves.
Field Summary | |
private CommandExecutor |
ce
The CommandExecutor object. |
private String |
id
The game id used for validation. |
Constructor Summary | |
protected |
MoveValidator(Color c,
Handicap h)
Create the move validator object. |
protected |
MoveValidator(String gid)
|
Method Summary | |
protected GameRecord |
getGameRecord()
Get the game record. |
protected String |
getId()
|
protected Stone |
getLastMoveKo()
|
protected short |
getMoveNumber()
Get the move number. |
protected Stone[] |
getSuicideMoves()
|
protected Stone[] |
getSuperKoMoves()
|
protected MoveDescriptor |
makeMove(Move m)
Make a move and check for legality. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private CommandExecutor ce
private String id
Constructor Detail |
protected MoveValidator(Color c, Handicap h) throws InternalErrorException
h
- The handicap of the game.
InternalErrorException
- - Thrown if the operation fails for any reason.protected MoveValidator(String gid) throws InternalErrorException
Method Detail |
protected Stone getLastMoveKo()
protected Stone[] getSuicideMoves()
protected Stone[] getSuperKoMoves()
protected MoveDescriptor makeMove(Move m) throws IllegalMoveException, InternalErrorException
m
- The move being entered.
IllegalMoveException
- - Thrown if the move is illegal.
InternalErrorException
- - Thrown if the operation fails for any reason.protected short getMoveNumber() throws InternalErrorException
InternalErrorException
- Thrown if the operation fails for any reason.protected GameRecord getGameRecord() throws InternalErrorException
InternalErrorException
- - Thrown if the operation fails for any reason.protected String getId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |