nu.dll.pong
Class Level

java.lang.Object
  |
  +--nu.dll.pong.Level

public class Level
extends java.lang.Object

Represents a Level as loaded by the LevelLoader.


Inner Class Summary
static class Level.Bonus
          Represents a Bonus that may be available in a level.
 
Method Summary
 int[][] getBricks()
          Returns the two-dimensional brick matrix for this level.
 int getHeight()
          Returns the height (in bricks, from outer upper border to the lowermost brick) of the brick matrix.
 int getNo()
          Returns the number of this level.
 int getWidth()
          Returns the width (in bricks, from outer left border to the rightmost brick) of the brick matrix.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getNo

public int getNo()
Returns the number of this level.

getBricks

public int[][] getBricks()
Returns the two-dimensional brick matrix for this level.

getWidth

public int getWidth()
Returns the width (in bricks, from outer left border to the rightmost brick) of the brick matrix.

getHeight

public int getHeight()
Returns the height (in bricks, from outer upper border to the lowermost brick) of the brick matrix.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object