|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.gen.DrawBoard
A basic toolkit for making boards. Use Gen static methods instead.
| Constructor Summary | |
DrawBoard()
Deprecated. |
|
| Method Summary | |
protected void |
addSquare(Board b,
int xcor,
int ycor)
Deprecated. |
Square |
drawBranch(Board board,
int sx,
int sy,
int branchLength)
Deprecated. Starting at sx,sy wander around randomly in branchLength segments from the origin. |
Square |
getRandomEvenSquare(Board b)
Deprecated. Nab a square with coordinates that are even numbers. |
Square |
getRandomSquare(Board b,
boolean need_empty)
Deprecated. |
void |
landAtOrigin(Board board)
Deprecated. Make starting spot the origin. |
protected Square |
line(Board b,
int sx,
int sy,
int dx,
int dy,
int len)
Deprecated. Draw a line len units long starting at sx, sy going dx,dy per step. |
void |
moveOut(Board b,
Square s)
Deprecated. Randomly place any actor or thing on the given square until the square is empty. |
void |
randomActorPlace(Board b,
Actor thing)
Deprecated. |
void |
randomKeyPlace(Board b)
Deprecated. Place key on random square in board (that does not have anything else there |
void |
randomThingPlace(Board b,
Thing thing)
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bot.BoardGenerator |
generateBoard |
| Constructor Detail |
public DrawBoard()
| Method Detail |
protected Square line(Board b,
int sx,
int sy,
int dx,
int dy,
int len)
protected void addSquare(Board b,
int xcor,
int ycor)
public Square drawBranch(Board board,
int sx,
int sy,
int branchLength)
public Square getRandomSquare(Board b,
boolean need_empty)
public Square getRandomEvenSquare(Board b)
public void landAtOrigin(Board board)
public void randomKeyPlace(Board b)
public void randomThingPlace(Board b,
Thing thing)
public void randomActorPlace(Board b,
Actor thing)
public void moveOut(Board b,
Square s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||