bot.gen
Class CleanBoard

java.lang.Object
  extended bybot.Board
      extended bybot.gen.CleanBoard
All Implemented Interfaces:
Cloneable, Serializable

public class CleanBoard
extends Board

A board that makes sure maze is empty aside from Bombs!

See Also:
Serialized Form

Constructor Summary
CleanBoard()
           
 
Method Summary
 WinChecker getWinChecker()
          If you want special win conditions for the board, override this.
 boolean isKeyBoard()
          Does this board revolve around picking up keys?
 int itemCount()
          Return total number of items on board.
protected  boolean skipObject(Thing t)
          Override this if there are certain objects you don't want to count towards being necessary to pick up.
 
Methods inherited from class bot.Board
addSquare, addSquare, addSquare, clone, endAction, getCenter, getDimensions, getHeight, getSquare, getSquare, getSquares, getTLCorner, getWidth, hasSquare, hasSquare, hasSquare, loadBoard, loadBoard, numSquares, save, save, setInformer, setStart, setStart, start
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanBoard

public CleanBoard()
Method Detail

itemCount

public int itemCount()
Return total number of items on board.


isKeyBoard

public boolean isKeyBoard()
Does this board revolve around picking up keys?

Overrides:
isKeyBoard in class Board
Returns:
true if the board cares about keys

skipObject

protected boolean skipObject(Thing t)
Override this if there are certain objects you don't want to count towards being necessary to pick up.

Parameters:
t -
Returns:
True if object should not be a pick-up item.

getWinChecker

public WinChecker getWinChecker()
Description copied from class: Board
If you want special win conditions for the board, override this.

Overrides:
getWinChecker in class Board