pushhhhh
This commit is contained in:
parent
396757fd9c
commit
f4596e33d7
|
|
@ -0,0 +1,99 @@
|
||||||
|
package backend; h
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
public class Board {
|
||||||
|
|
||||||
|
public Board(int colNum, int lineNum) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getWidth() {
|
||||||
|
//TODO
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getHeight() {
|
||||||
|
//TODO
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTurnNumber() {
|
||||||
|
//TODO
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isTurnWhite() {
|
||||||
|
//TODO
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPiece(boolean isWhite, PieceType type, int x, int y) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public void populateBoard() {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public void cleanBoard() {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
//TODO
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<Piece> getPieces() {
|
||||||
|
ArrayList<Piece> pieces = new ArrayList<>();
|
||||||
|
//TODO
|
||||||
|
|
||||||
|
return pieces;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void userTouch(int x, int y) {
|
||||||
|
//TODO
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSelected(int x, int y) {
|
||||||
|
//TODO
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* saving-loading feature :*/
|
||||||
|
|
||||||
|
public String[] toFileRep() {
|
||||||
|
//TODO
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Board(String[] array) {
|
||||||
|
//TODO
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The following methods require more work ! */
|
||||||
|
|
||||||
|
public boolean isHighlighted(int x, int y) {
|
||||||
|
//TODO
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void undoLastMove() {
|
||||||
|
//TODO
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public Board(Board board) {
|
||||||
|
//TODO
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void playMove(Move move) {
|
||||||
|
//TODO
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue