net.jinx.action
Interface SceneListener

All Known Subinterfaces:
OwnerListener
All Known Implementing Classes:
AudioRenderer, Clock, ParticleFountain, RealTimeClock, SpringSheet, SteppingClock, Universe, VideoRenderer

public interface SceneListener

This interface allows an object that implements it to listen for Actor adds and removals to/from a Scene.

API Stability: Stable.


Method Summary
 void actorAdded(Actor actor, Scene scene)
          Called when an Actor has been added to the Scene.
 void actorRemoved(Actor actor, Scene scene)
          Called when an Actor has been removed from the Scene.
 

Method Detail

actorAdded

void actorAdded(Actor actor,
                Scene scene)
Called when an Actor has been added to the Scene. It is also called once for each actor when the Listener is added to the Scene.

Parameters:
actor - the Actor that has been added.
scene - the Scene that this event came from.

actorRemoved

void actorRemoved(Actor actor,
                  Scene scene)
Called when an Actor has been removed from the Scene. It is also called once for each actor when the Listener is removed from the Scene.

Parameters:
actor - the Actor that has been removed.
scene - the Scene that this event came from.