Class Board

java.lang.Object
  extended by greenfoot.World
      extended by Board

public class Board
extends greenfoot.World

The game board.

Version:
1.0
Author:
mik, Michael Berry

Field Summary
 int levelNum
          The number of levels
 
Fields inherited from class greenfoot.World
lock, READ_LOCK_TIMEOUT
 
Constructor Summary
Board()
          Create a new board
 
Method Summary
 void ballIsOut()
          Called when the ball has not been caught by the paddle.
 void completed()
          Called when all levels have been completed.
 void nextLevel()
          Called when the level has been completed.
 void setupLevel()
          Sets up a specified level
 
Methods inherited from class greenfoot.World
act, addObject, getBackground, getCellSize, getColorAt, getHeight, getObjects, getObjectsAt, getWidth, isTiled, numberOfObjects, removeObject, removeObjects, repaint, setActOrder, setBackground, setBackground, setPaintOrder, setTiled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

levelNum

public final int levelNum
The number of levels

See Also:
Constant Field Values
Constructor Detail

Board

public Board()
Create a new board

Method Detail

ballIsOut

public void ballIsOut()
Called when the ball has not been caught by the paddle.


completed

public void completed()
Called when all levels have been completed.


nextLevel

public void nextLevel()
Called when the level has been completed. Advances to the next level and checks whether all levels have been completed.


setupLevel

public void setupLevel()
Sets up a specified level