Uses of Class
org.gChess.Location

Uses of Location in org.gChess
 

Methods in org.gChess that return Location
 Location ChessPiece.getLoc()
           
 Location ChessSquare.getLocation()
           
 Location Location.getLocationInDir(int dir)
           
 

Methods in org.gChess that return types with arguments of type Location
 java.util.ArrayList<Location> Queen.getMoveLocations()
           
 java.util.ArrayList<Location> Bishop.getMoveLocations()
           
 java.util.ArrayList<Location> Knight.getMoveLocations()
           
 java.util.ArrayList<Location> King.getMoveLocations()
           
 java.util.ArrayList<Location> Rook.getMoveLocations()
           
 java.util.ArrayList<Location> Pawn.getMoveLocations()
           
abstract  java.util.ArrayList<Location> ChessPiece.getMoveLocations()
          This method DOES NOT check that all returned locations are not occupied.
 java.util.ArrayList<Location> Queen.getValidMoveLocations()
           
 java.util.ArrayList<Location> Bishop.getValidMoveLocations()
           
 java.util.ArrayList<Location> Rook.getValidMoveLocations()
           
 java.util.ArrayList<Location> ChessPiece.getValidMoveLocations()
           
 java.util.ArrayList<Location> ChessBoard.locsInDirUntilBlocked(Location loc, int direction, int playerColor)
          Grabs locations in a certain direction until it hits something: a wall, a ChessPiece, whatnot.
 

Methods in org.gChess with parameters of type Location
 boolean Location.equals(Location other)
           
 ChessPiece ChessBoard.getPieceAt(Location loc)
           
 boolean ChessBoard.isOccupied(Location loc)
           
 java.util.ArrayList<Location> ChessBoard.locsInDirUntilBlocked(Location loc, int direction, int playerColor)
          Grabs locations in a certain direction until it hits something: a wall, a ChessPiece, whatnot.
 void ChessBoard.movePiece(ChessPiece cp, Location loc)
          wraps a call to the move method of the chess piece to be moved.
 void ChessPiece.moveTo(Location loc)
           
 void ChessBoard.putPiece(ChessPiece cp, Location loc)
           
 void ChessBoard.remove(Location loc)
           
 void ChessPiece.setLoc(Location loc)
           
 void ChessSquare.setSize(int squareLength, int squareHeight, Location loc)
           
 

Method parameters in org.gChess with type arguments of type Location
 boolean Location.includedIn(java.util.ArrayList<Location> locs)
           
 

Constructors in org.gChess with parameters of type Location
Bishop(int color, Location loc, ChessBoard cb)
           
ChessPiece(int color, Location loc, ChessBoard cb)
           
ChessSquare(Location loc)
           
King(int color, Location loc, ChessBoard cb)
           
Knight(int color, Location loc, ChessBoard cb)
           
Pawn(int color, Location loc, ChessBoard cb)
           
Queen(int color, Location loc, ChessBoard cb)
           
Rook(int color, Location loc, ChessBoard cb)