com.threerings.media.sprite
Interface PathObserver

All Known Implementing Classes:
PathAdapter, SpriteAnimation, SpritePathAnimation

public interface PathObserver

An interface to be implemented by classes that would like to be notified when a sprite completes or cancels its path.


Method Summary
 void pathCancelled(Sprite sprite, Path path)
          Called when a sprite's path is cancelled either because a new path was started or the path was explicitly cancelled with Sprite.cancelMove().
 void pathCompleted(Sprite sprite, Path path, long when)
          Called when a sprite completes its traversal of a path.
 

Method Detail

pathCancelled

void pathCancelled(Sprite sprite,
                   Path path)
Called when a sprite's path is cancelled either because a new path was started or the path was explicitly cancelled with Sprite.cancelMove().


pathCompleted

void pathCompleted(Sprite sprite,
                   Path path,
                   long when)
Called when a sprite completes its traversal of a path.

Parameters:
sprite - the sprite that completed its path.
path - the path that was completed.
when - the tick stamp of the media tick on which the path was completed (see FrameManager.tick(long)) (this may not be in the same time domain as System.currentTimeMillis()).