|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.tudey.util.ActorHistory.Entry
protected static class ActorHistory.Entry
A single historical entry.
| Field Summary | |
|---|---|
protected Actor |
_actor
The actor state. |
protected int |
_timestamp
The timestamp of this entry. |
| Constructor Summary | |
|---|---|
ActorHistory.Entry(int timestamp,
Actor actor)
Creates a new entry. |
|
| Method Summary | |
|---|---|
Actor |
extrapolate(int timestamp,
Actor result)
Extrapolates from this entry to the specified timestamp. |
Actor |
getActor()
Returns a reference to the actor state. |
float |
getPortion(ActorHistory.Entry other,
int timestamp)
Returns the portion of time elapsed between this and the specified other entry. |
int |
getTimestamp()
Returns the timestamp of the entry. |
Actor |
interpolate(ActorHistory.Entry other,
int timestamp,
Actor result)
Interpolates between this entry and another. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _timestamp
protected Actor _actor
| Constructor Detail |
|---|
public ActorHistory.Entry(int timestamp,
Actor actor)
| Method Detail |
|---|
public int getTimestamp()
public Actor getActor()
public Actor extrapolate(int timestamp,
Actor result)
public Actor interpolate(ActorHistory.Entry other,
int timestamp,
Actor result)
public float getPortion(ActorHistory.Entry other,
int timestamp)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||