|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.util.BobblePath
com.threerings.media.util.SmoothBobblePath
public class SmoothBobblePath
Bobble a Pathable smoothly.
| Field Summary | |
|---|---|
protected int |
_newx
The next position. |
protected int |
_newy
The next position. |
protected int |
_oldx
The previous position. |
protected int |
_oldy
The previous position. |
| Fields inherited from class com.threerings.media.util.BobblePath |
|---|
_duration, _dx, _dy, _nextMove, _stopTime, _sx, _sy, _updateFreq |
| Constructor Summary | |
|---|---|
SmoothBobblePath(int dx,
int dy,
long duration)
|
|
SmoothBobblePath(int dx,
int dy,
long duration,
long updateFreq)
|
|
| Method Summary | |
|---|---|
void |
init(Pathable pable,
long tickstamp)
Called once to let the path prepare itself for the process of animating the supplied pathable. |
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.BobblePath |
|---|
fastForward, paint, setUpdateFrequency, setVariance, stop, updatePositionTo, wasRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _oldx
protected int _oldy
protected int _newx
protected int _newy
| Constructor Detail |
|---|
public SmoothBobblePath(int dx,
int dy,
long duration)
public SmoothBobblePath(int dx,
int dy,
long duration,
long updateFreq)
| Method Detail |
|---|
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.
init in interface Pathinit in class BobblePath
public boolean tick(Pathable pable,
long tickStamp)
Path
tick in interface Pathtick in class BobblePathpable - 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 | ||||||||