Files
narya/src/java/com/threerings/media/sprite/SpriteObserver.java
T
Michael Bayne 00fde3eeb3 Modified sprite event mechanism to used classes derived from SpriteEvent
rather than codes to indicate different types of events. Also modified
name of sprite observer callback as spriteChanged() implies that the
sprite actually changed which it may not have, whereas handleEvent()
doesn't imply anything other than the sprite observer is being asked to
deal with a sprite event.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@338 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-09-13 19:36:20 +00:00

22 lines
605 B
Java

//
// $Id: SpriteObserver.java,v 1.3 2001/09/13 19:36:20 mdb Exp $
package com.threerings.media.sprite;
/**
* An interface to be implemented by classes that would like to observe a
* sprite and be notified of meaningful events as it, and any other
* sprites, move about.
*/
public interface SpriteObserver
{
/**
* This method is called by the {@link SpriteManager} when something
* interesting is accomplished by or happens to the sprite.
*
* @param sprite the sprite involved.
* @param event the sprite event.
*/
public void handleEvent (SpriteEvent event);
}