client.brickblock.objects
Class Trap

java.lang.Object
  extended by Sprite
      extended by client.brickblock.objects.Trap

public class Trap
extends Sprite

The Trap object displayed on the game board that the users lose points if they hit. This class extends the Sprite class so that it can be placed directly on the BBBoard by the LayerManager.

Author:
Martin Jarrett, Eivind Sorteberg

Constructor Summary
Trap(int x, int y)
          Creates a Trap instance by loading its image.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trap

public Trap(int x,
            int y)
     throws java.io.IOException
Creates a Trap instance by loading its image.

Parameters:
x - The trap's x position
y - The trap's y position
Throws:
java.io.IOException - If the image file is not found.