|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.scripting.GameObjectEventMulticaster
Adapter to multicast GameObject notifications to multiple listeners.
Constructor Summary | |
GameObjectEventMulticaster(GameObjectEventListener l1,
GameObjectEventListener l2)
|
Method Summary | |
void |
addListener(GameObjectEventListener l)
|
void |
notifyCeilingCollision(GameObject object)
Notifies this GameObject that when it moved, it collided with a ceiling. |
void |
notifyFloorCollision(GameObject object)
Notifies this GameObject that when it moved, it collided with a floor. |
void |
notifyObjectCollision(GameObject object,
GameObject otherObject)
Notifies this GameObject that when it moved, it collided with the specified object. |
void |
notifyObjectRelease(GameObject object,
GameObject otherObject)
Notifies this GameObject that it is no longer touching the specified object. |
void |
notifyObjectTouch(GameObject object,
GameObject otherObject)
Notifies this GameObject that it is touching the specified object. |
void |
notifyVisible(GameObject object,
boolean visible)
Notifies this GameObject whether it was visible or not on the last update. |
void |
notifyWallCollision(GameObject object)
Notifies this GameObject that when it moved, it collided with a wall. |
void |
removeListener(GameObjectEventListener l)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GameObjectEventMulticaster(GameObjectEventListener l1, GameObjectEventListener l2)
Method Detail |
public void addListener(GameObjectEventListener l)
public void removeListener(GameObjectEventListener l)
public void notifyVisible(GameObject object, boolean visible)
notifyVisible
in interface GameObjectEventListener
public void notifyObjectCollision(GameObject object, GameObject otherObject)
notifyObjectCollision
in interface GameObjectEventListener
public void notifyObjectTouch(GameObject object, GameObject otherObject)
GameObjectEventListener
notifyObjectTouch
in interface GameObjectEventListener
public void notifyObjectRelease(GameObject object, GameObject otherObject)
GameObjectEventListener
notifyObjectRelease
in interface GameObjectEventListener
public void notifyFloorCollision(GameObject object)
notifyFloorCollision
in interface GameObjectEventListener
public void notifyCeilingCollision(GameObject object)
notifyCeilingCollision
in interface GameObjectEventListener
public void notifyWallCollision(GameObject object)
notifyWallCollision
in interface GameObjectEventListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |