|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.util.TimedPath
public abstract class TimedPath
A base class for path implementations that endeavor to move their pathables along a path in a specified number of milliseconds.
| Field Summary | |
|---|---|
protected long |
_duration
The duration that we're to spend following the path. |
protected long |
_startStamp
The time at which we started along the path. |
| Constructor Summary | |
|---|---|
TimedPath(long duration)
Configures the timed path with the duration in which it must traverse its path. |
|
| Method Summary | |
|---|---|
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 timestamp)
Called once to let the path prepare itself for the process of animating the supplied pathable. |
String |
toString()
|
protected void |
toString(StringBuilder buf)
An extensible method for generating a string representation of this instance. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.threerings.media.util.Path |
|---|
paint, tick |
| Field Detail |
|---|
protected long _duration
protected long _startStamp
| Constructor Detail |
|---|
public TimedPath(long duration)
| Method Detail |
|---|
public void init(Pathable pable,
long timestamp)
PathPath.tick(com.threerings.media.util.Pathable, long) after Path.init(com.threerings.media.util.Pathable, long) with the same
initialization timestamp.
init in interface Pathpublic void fastForward(long timeDelta)
Path
fastForward in interface Pathpublic void wasRemoved(Pathable pable)
Path
wasRemoved in interface Pathpublic String toString()
toString in class Objectprotected void toString(StringBuilder buf)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||