|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.util.TimedPath
com.threerings.media.util.DelayPath
public class DelayPath
A convenience path that waits a specified amount of time.
| Field Summary | |
|---|---|
protected Point |
_source
Source point. |
| Fields inherited from class com.threerings.media.util.TimedPath |
|---|
_duration, _startStamp |
| Constructor Summary | |
|---|---|
DelayPath(int x,
int y,
long duration)
Move to the sprite to the supplied location then wait for the duration. |
|
DelayPath(long duration)
Cause the current path to remain unchanged for the duration. |
|
DelayPath(Point source,
long duration)
Move to the sprite to the supplied location then wait for the duration. |
|
| Method Summary | |
|---|---|
void |
init(Pathable pable,
long timestamp)
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. |
| Methods inherited from class com.threerings.media.util.TimedPath |
|---|
fastForward, toString, toString, wasRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Point _source
| Constructor Detail |
|---|
public DelayPath(long duration)
public DelayPath(int x,
int y,
long duration)
public DelayPath(Point source,
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 Pathinit in class TimedPathpublic void paint(Graphics2D gfx)
Path
public boolean tick(Pathable pable,
long tickstamp)
Path
pable - the pathable whose position should be updated.tickstamp - the timestamp associated with this frame.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||