bot.gen
Class Islands
java.lang.Object
bot.gen.ConfigurableBoard
bot.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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Islands
public Islands()
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