bot
Class CritterBoard

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

public class CritterBoard
extends Board
implements Serializable, Cloneable

This board has moving critters that can do stuff. It is not quite in a workable state at the moment, due to redrawing issues.

See Also:
Serialized Form

Constructor Summary
CritterBoard()
          Make an empty board.
 
Method Summary
 void addCritter(Critter c)
           
 void endAction(Bot b)
          If the board wants to hear about an action being ended, override this and make a special board.
 void setInformer(Informer inf)
          If we need to know who our informer is.
 
Methods inherited from class bot.Board
addSquare, addSquare, addSquare, clone, getCenter, getDimensions, getHeight, getSquare, getSquare, getSquares, getTLCorner, getWidth, getWinChecker, hasSquare, hasSquare, hasSquare, isKeyBoard, loadBoard, loadBoard, numSquares, save, save, setStart, setStart, start
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CritterBoard

public CritterBoard()
Make an empty board.

Method Detail

addCritter

public void addCritter(Critter c)

endAction

public void endAction(Bot b)
If the board wants to hear about an action being ended, override this and make a special board. In this case, it tells all the critters to tick.

Overrides:
endAction in class Board

setInformer

public void setInformer(Informer inf)
If we need to know who our informer is. (For CritterBoard)

Overrides:
setInformer in class Board