|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrules.Piece
rules.Board
public class Board
the board of the game
Field Summary | |
---|---|
int |
NUM_PIECES
The number of pieces on the board |
private Piece[][] |
p
An array of pieces which are used to reference each piece. |
Fields inherited from class rules.Piece |
---|
BISHOP, BLACK, KING, KNIGHT, MAX, NUM_SIDES, PAWN, QUEEN, ROOK, WHITE |
Constructor Summary | |
---|---|
Board()
Constructs a board with the right pieces in its starting positions |
Method Summary | |
---|---|
Piece[][] |
getArray()
Returns an array of the pieces in their current positions (side isn't recorded because it isn't part of the piece Object) |
Methods inherited from class rules.Piece |
---|
getpytype, getside, getstate, getx, gety, kill, movex, movey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int NUM_PIECES
private Piece[][] p
Constructor Detail |
---|
public Board()
Method Detail |
---|
public Piece[][] getArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |