com.threerings.media.sprite
Class PathAdapter

java.lang.Object
  extended by com.threerings.media.sprite.PathAdapter
All Implemented Interfaces:
PathObserver

public class PathAdapter
extends Object
implements PathObserver

An adapter class for PathObserver.


Constructor Summary
PathAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathAdapter

public PathAdapter()
Method Detail

pathCancelled

public void pathCancelled(Sprite sprite,
                          Path path)
Description copied from interface: PathObserver
Called when a sprite's path is cancelled either because a new path was started or the path was explicitly cancelled with Sprite.cancelMove().

Specified by:
pathCancelled in interface PathObserver

pathCompleted

public void pathCompleted(Sprite sprite,
                          Path path,
                          long when)
Description copied from interface: PathObserver
Called when a sprite completes its traversal of a path.

Specified by:
pathCompleted in interface PathObserver
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()).