bot.gen
Class DrawBoard

java.lang.Object
  extended bybot.gen.DrawBoard
All Implemented Interfaces:
BoardGenerator

public abstract class DrawBoard
extends Object
implements BoardGenerator

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

DrawBoard

public DrawBoard()
Deprecated. 
Method Detail

line

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. Includes first step, and the last.

Returns:
last square placed

addSquare

protected void addSquare(Board b,
                         int xcor,
                         int ycor)
Deprecated. 

drawBranch

public Square drawBranch(Board board,
                         int sx,
                         int sy,
                         int branchLength)
Deprecated. 
Starting at sx,sy wander around randomly in branchLength segments from the origin.

Returns:
last square reached

getRandomSquare

public Square getRandomSquare(Board b,
                              boolean need_empty)
Deprecated. 

getRandomEvenSquare

public Square getRandomEvenSquare(Board b)
Deprecated. 
Nab a square with coordinates that are even numbers.


landAtOrigin

public void landAtOrigin(Board board)
Deprecated. 
Make starting spot the origin.


randomKeyPlace

public void randomKeyPlace(Board b)
Deprecated. 
Place key on random square in board (that does not have anything else there


randomThingPlace

public void randomThingPlace(Board b,
                             Thing thing)
Deprecated. 

randomActorPlace

public void randomActorPlace(Board b,
                             Actor thing)
Deprecated. 

moveOut

public void moveOut(Board b,
                    Square s)
Deprecated. 
Randomly place any actor or thing on the given square until the square is empty.