|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSprite
client.brickblock.objects.Trap
public class Trap
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
.
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 |
---|
public Trap(int x, int y) throws java.io.IOException
Trap
instance by loading
its image.
x
- The trap's x positiony
- The trap's y position
java.io.IOException
- If the image file is not found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |