This commit is contained in:
commit
00a81b0b74
|
|
@ -3,6 +3,7 @@ package backend;
|
|||
import java.util.ArrayList;
|
||||
|
||||
public class Board {
|
||||
|
||||
private int colNum;
|
||||
private int lineNum;
|
||||
private Piece[][] board;
|
||||
|
|
@ -20,11 +21,11 @@ public class Board {
|
|||
}
|
||||
}
|
||||
|
||||
public int getWidth() {
|
||||
return colNum;
|
||||
public int getWidth() {
|
||||
return colNum;
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
public int getHeight() {
|
||||
return lineNum;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,15 @@ package backend;
|
|||
|
||||
public class Piece {
|
||||
|
||||
private int x;
|
||||
private int y;
|
||||
|
||||
public int getX() {
|
||||
return 0;
|
||||
return this.x;
|
||||
}
|
||||
|
||||
public int getY() {
|
||||
return 0;
|
||||
return this.y;
|
||||
}
|
||||
|
||||
public PieceType getType() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue