public class Square
extends Object
Represents a chessboard square.
-
Constructor Summary
Constructors
-
Method Summary
int
int
boolean
void
Removes the piece from the square.
void
-
Constructor Details
-
Square
public Square(int posX,
int posY,
Piece piece)
-
Method Details
-
setPiece
public void setPiece(Piece piece)
-
-
removePiece
public void removePiece()
Removes the piece from the square.
-
getPosX
public int getPosX()
-
getPosY
public int getPosY()
-
-
-
hasPiece
public boolean hasPiece()