bot.gen
Class Islands

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

public class Islands
extends ConfigurableBoard
implements ExtraPainBoardGenerator

Make a maze where each isolated room has a marker (the landing pad) and up to four orbs surrounding the marker. Those orbs will teleport the bot to the next landing pad. Some of the landing pads have keys instead of markers next to them. Get all the keys.


Field Summary
 
Fields inherited from interface bot.ConfigurableBoardGenerator
BIG, DEFAULT_DIFFICULTY, EASY, HARD, MEDIUM, SMALL, TRIVIAL, VERY_HARD
 
Constructor Summary
Islands()
           
 
Method Summary
 void buildRoom(Board b, int depth, Point p, int fromDir, int fromDist)
           
 void buildRoomEP(Board b, int depth, Point p, int fromDir, int fromDist, int xr, int yr)
           
 Board generateBoard()
           
 boolean painOn()
           
 void setExtraPain(boolean painOn)
           
 boolean spaceForRoom(Board b, int x, int y)
           
 boolean spaceForRoom(Board b, int x, int y, int xr, int yr)
           
 
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
 

Constructor Detail

Islands

public Islands()
Method Detail

setExtraPain

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

painOn

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

spaceForRoom

public boolean spaceForRoom(Board b,
                            int x,
                            int y,
                            int xr,
                            int yr)

spaceForRoom

public boolean spaceForRoom(Board b,
                            int x,
                            int y)

buildRoom

public void buildRoom(Board b,
                      int depth,
                      Point p,
                      int fromDir,
                      int fromDist)

buildRoomEP

public void buildRoomEP(Board b,
                        int depth,
                        Point p,
                        int fromDir,
                        int fromDist,
                        int xr,
                        int yr)

generateBoard

public Board generateBoard()
Specified by:
generateBoard in interface BoardGenerator