public class PathAdapter extends Object implements PathObserver
PathObserver.| Constructor and Description |
|---|
PathAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void pathCancelled(Sprite sprite, Path path)
PathObserverSprite.cancelMove().pathCancelled in interface PathObserverpublic void pathCompleted(Sprite sprite, Path path, long when)
PathObserverpathCompleted in interface PathObserversprite - 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()).Copyright © 2015. All rights reserved.