Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package chess;
- public abstract class Piece {
- private int row;
- private int column;
- private String symbol;
- protected PieceColour colour;
- public Piece(){
- }
- public String getSymbol(){
- return symbol;
- }
- public void setSymbol(String newSymbol){
- symbol = newSymbol;
- }
- public PieceColour getColour(){
- return colour;
- }
- public void updateCoordinates(int newRow, int newColumn){
- row = newRow;
- column = newColumn;
- }
- public abstract boolean isLegitMove(int i0, int j0, int i1, int j1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement