|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgame.collision.CollisionHandler
game.collision.BrickHitsFloor
public class BrickHitsFloor
Collision handler for a brick and the floor.
| Constructor Summary | |
|---|---|
BrickHitsFloor(Brick brick,
Boundary floor,
PieceMover brickMover)
Constructor for BrickHitsFloor |
|
| Method Summary | |
|---|---|
void |
observeEvent(Collision e)
This method is called when collisions occur and responds appropriately. |
| Methods inherited from class game.collision.CollisionHandler |
|---|
die, isDead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrickHitsFloor(Brick brick,
Boundary floor,
PieceMover brickMover)
brick - the brick being monitoredfloor - the boundary object hit by the brickbrickMover - the object responsible for moving the brick| Method Detail |
|---|
public void observeEvent(Collision e)
observeEvent in interface Subscriber<Collision>observeEvent in class CollisionHandlere - The PutSubEvent, varies by Publisher.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||