Class Box

java.lang.Object
  extended by Obj
      extended by Box

public class Box
extends Obj

This class just sits there and doesn't do anything. May drop a PowerUp upon removal.

Author:
Jonathan

Field Summary
private  java.awt.image.BufferedImage boxImage
           
 
Constructor Summary
Box(Grid gr)
          Creates a box that can be destroyed by fire and may lay a PowerUp after it has been removed by a fire.
 
Method Summary
 java.awt.image.BufferedImage getImage()
          Returns the image to be drawn in the grid.
 void removeSelfFromGrid()
          Upon removal, there is a chance the Box will drop a PowerUp.
 
Methods inherited from class Obj
getGrid, getX, getY, moveTo, putSelfInGrid, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boxImage

private java.awt.image.BufferedImage boxImage
Constructor Detail

Box

public Box(Grid gr)
Creates a box that can be destroyed by fire and may lay a PowerUp after it has been removed by a fire.

Parameters:
gr -
Method Detail

removeSelfFromGrid

public void removeSelfFromGrid()
Upon removal, there is a chance the Box will drop a PowerUp.

Overrides:
removeSelfFromGrid in class Obj

getImage

public java.awt.image.BufferedImage getImage()
Description copied from class: Obj
Returns the image to be drawn in the grid.

Specified by:
getImage in class Obj
Returns:
the image to be drawn.