com.threerings.media.sprite
Class PathAdapter
java.lang.Object
com.threerings.media.sprite.PathAdapter
- All Implemented Interfaces:
- PathObserver
public class PathAdapter
- extends Object
- implements PathObserver
An adapter class for PathObserver.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathAdapter
public PathAdapter()
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()).