|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webstersmalley.chessweb.model.Piece
com.webstersmalley.chessweb.model.pieces.King
public class King
King class.
Field Summary | |
---|---|
static java.lang.String |
BLACK_STARTING_POSITIONS
Black starting positions. |
static java.lang.String |
WHITE_STARTING_POSITIONS
White starting positions. |
Fields inherited from class com.webstersmalley.chessweb.model.Piece |
---|
ALL_PIECES, BLACK_BISHOP, BLACK_KING, BLACK_KNIGHT, BLACK_PAWN, BLACK_QUEEN, BLACK_ROOK, WHITE_BISHOP, WHITE_KING, WHITE_KNIGHT, WHITE_PAWN, WHITE_QUEEN, WHITE_ROOK |
Constructor Summary | |
---|---|
King(Team team)
Constructs the King. |
Method Summary | |
---|---|
void |
validateDirection(Move move,
Board board)
Validates the direction. |
Methods inherited from class com.webstersmalley.chessweb.model.Piece |
---|
getIcon, getName, getStartingPositions, getTeam, isJumper, moveIsATake, setJumper, setStartingPositions, setTeam, validateMove, validateTake |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WHITE_STARTING_POSITIONS
public static final java.lang.String BLACK_STARTING_POSITIONS
Constructor Detail |
---|
public King(Team team)
team
- the team.Method Detail |
---|
public final void validateDirection(Move move, Board board) throws InvalidMoveException
validateDirection
in class Piece
move
- the moveboard
- the board
InvalidMoveException
- if the move is invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |