|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gChess.ChessPiece
org.gChess.Rook
public class Rook
Field Summary |
---|
Fields inherited from class org.gChess.ChessPiece |
---|
BLACK, WHITE |
Constructor Summary | |
---|---|
Rook(int color,
Location loc,
ChessBoard cb)
|
Method Summary | |
---|---|
java.util.ArrayList<Location> |
getMoveLocations()
This method DOES NOT check that all returned locations are not occupied. |
java.util.ArrayList<Location> |
getValidMoveLocations()
|
Methods inherited from class org.gChess.ChessPiece |
---|
canMove, getBoard, getColor, getImage, getLoc, loadImage, moveTo, setLoc |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rook(int color, Location loc, ChessBoard cb)
Method Detail |
---|
public java.util.ArrayList<Location> getMoveLocations()
ChessPiece
getMoveLocations
in class ChessPiece
public java.util.ArrayList<Location> getValidMoveLocations()
getValidMoveLocations
in class ChessPiece
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |