| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The GameBoard keeps tracks of all the SquareOfLand objects.
Constructor Summary | |
protected | GameBoard(int width, int height) Create a new *empty* gameboard with the given size. |
Method Summary | |
static GameBoard | create(int width, int height) Create a new random gameboard. |
List | getConstructionList() Get the constructionlist of the gameboard. |
int | getHeight() Get the height of the gameboard. |
SquareOfLand | getSquare(int x, int y) Get the square at the given position. |
List | getSurroundingSquares(SquareOfLand sq, int range, boolean explored) Get the surrounding squares in the range of a certain position. |
int | getWidth() Get the width of the gameboard. |
void | place(int x, int y, Human human) Place a human on the given spot. |
Constructor Detail |
protected GameBoard(int width, int height)
Method Detail |
public static GameBoard create(int width, int height)
public List getConstructionList()
public int getHeight()
public SquareOfLand getSquare(int x, int y)
public List getSurroundingSquares(SquareOfLand sq, int range, boolean explored)
public int getWidth()
public void place(int x, int y, Human human)
throws evolution.lands.IllegalPlacementException
Association Links |
to Class java.util.List
| a gvijf production | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |