| Constructor and Description |
|---|
PathSequence(List<Path> paths)
Construct a path sequence with the list of paths.
|
PathSequence(Path first,
Path second)
Conveniently construct a path sequence with the two specified paths.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPath(Path path)
Add a new path to the end of our current list.
|
void |
fastForward(long timeDelta)
This is called if the pathable is paused for some length of time and then unpaused.
|
void |
init(Pathable pable,
long tickStamp)
Called once to let the path prepare itself for the process of animating the supplied
pathable.
|
void |
paint(Graphics2D gfx)
Paint this path on the screen (used for debugging purposes only).
|
boolean |
tick(Pathable pable,
long tickStamp)
Called to request that this path update the position of the specified pathable based on the
supplied timestamp information.
|
void |
wasRemoved(Pathable pable)
When a path is removed from a pathable, whether that is because the path was completed or
because it was replaced by another path, this method will be called to let the path know
that it is no longer associated with this pathable.
|
public PathSequence(Path first, Path second)
public void addPath(Path path)
public void init(Pathable pable, long tickStamp)
PathPath.tick(com.threerings.media.util.Pathable, long) after Path.init(com.threerings.media.util.Pathable, long) with the same
initialization timestamp.public boolean tick(Pathable pable, long tickStamp)
Pathpublic void fastForward(long timeDelta)
PathfastForward in interface Pathpublic void paint(Graphics2D gfx)
Pathpublic void wasRemoved(Pathable pable)
PathwasRemoved in interface PathCopyright © 2015. All rights reserved.