bot.gen
Class BullsEye

java.lang.Object
  extended bybot.gen.ConfigurableBoard
      extended bybot.gen.BullsEye
All Implemented Interfaces:
BoardGenerator, ConfigurableBoardGenerator, ExtraPainBoardGenerator

public class BullsEye
extends ConfigurableBoard
implements ExtraPainBoardGenerator

Make a bullseye maze with key in it. Diffaculty is number of loops.


Field Summary
protected  Board board
           
 
Fields inherited from interface bot.ConfigurableBoardGenerator
BIG, DEFAULT_DIFFICULTY, EASY, HARD, MEDIUM, SMALL, TRIVIAL, VERY_HARD
 
Constructor Summary
BullsEye()
           
 
Method Summary
 void drawRect(Board b, int tlx, int tly, int wid, int height)
           
 void fillWithAcid(Board b, int tlx, int tly, int w, int h)
           
 Board generateBoard()
          Generate the maze!
 boolean painOn()
           
 void setExtraPain(boolean painOn)
           
 
Methods inherited from class bot.gen.ConfigurableBoard
getDifficulty, getDifficulty, getDifficulty, getRandomizedDifficulty, setDifficulty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

board

protected Board board
Constructor Detail

BullsEye

public BullsEye()
Method Detail

setExtraPain

public void setExtraPain(boolean painOn)
Specified by:
setExtraPain in interface ExtraPainBoardGenerator

painOn

public boolean painOn()
Specified by:
painOn in interface ExtraPainBoardGenerator

fillWithAcid

public void fillWithAcid(Board b,
                         int tlx,
                         int tly,
                         int w,
                         int h)

drawRect

public void drawRect(Board b,
                     int tlx,
                     int tly,
                     int wid,
                     int height)

generateBoard

public Board generateBoard()
Generate the maze!

Specified by:
generateBoard in interface BoardGenerator