|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.tudey.data.actor.Actor
com.threerings.tudey.data.actor.Mobile
com.threerings.tudey.data.actor.Active
public class Active
An actor capable of performing activities.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Field Summary | |
|---|---|
static int |
LAST_ACTIVITY
The last activity defined in this class. |
static int |
NONE
Indicates that no activity is being performed. |
| Fields inherited from class com.threerings.tudey.data.actor.Mobile |
|---|
LAST_FLAG, MOVING |
| Fields inherited from class com.threerings.tudey.data.actor.Actor |
|---|
WARP |
| Constructor Summary | |
|---|---|
Active()
No-arg constructor for deserialization. |
|
Active(ConfigReference<ActorConfig> config,
int id,
int created,
Vector2f translation,
float rotation)
Creates a new active actor. |
|
| Method Summary | |
|---|---|
Object |
copy(Object dest)
Creates a copy of this object, (re)populating the supplied destination object if possible. |
ActorAdvancer |
createAdvancer(ActorAdvancer.Environment environment,
int timestamp)
Creates an advancer for the actor. |
boolean |
equals(Object other)
|
int |
getActivity()
Returns the activity identifier. |
int |
getActivityStarted()
Returns the activity timestamp. |
int |
hashCode()
|
Actor |
interpolate(Actor other,
int start,
int end,
int timestamp,
Actor result)
Interpolates between the state of this actor and that of the specified other, placing the result in the provided object. |
void |
setActivity(int activity)
Sets the activity identifier. |
void |
setActivity(int activity,
int started)
Sets both the activity and the start timestamp. |
void |
setActivityStarted(int started)
Sets the activity timestamp. |
| Methods inherited from class com.threerings.tudey.data.actor.Mobile |
|---|
addStepLimiter, extrapolate, getDirection, getMaxStep, getMaxStepSquared, getSpeed, getTurnDirection, getTurnRate, removeStepLimiter, setDirection, setMaxStep, step |
| Methods inherited from class com.threerings.tudey.data.actor.Actor |
|---|
canCollide, canCollide, clear, getCollisionFlags, getCollisionMask, getConfig, getCreated, getDestroyed, getFlags, getId, getOriginal, getPreloads, getRotation, getTranslation, init, isClientControlled, isDirty, isSet, maybeCreateAdvancer, set, set, setConfig, setDestroyed, setDirty, setFlags, setRotation, setTranslation, toString |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NONE
public static final int LAST_ACTIVITY
| Constructor Detail |
|---|
public Active(ConfigReference<ActorConfig> config,
int id,
int created,
Vector2f translation,
float rotation)
public Active()
| Method Detail |
|---|
public void setActivity(int activity,
int started)
public void setActivity(int activity)
public int getActivity()
public void setActivityStarted(int started)
public int getActivityStarted()
public Actor interpolate(Actor other,
int start,
int end,
int timestamp,
Actor result)
Actor
interpolate in class Actorstart - the start time (the timestamp of this actor).end - the end time (the timestamp of the other actor).timestamp - the desired time (the timestamp of the result).
public ActorAdvancer createAdvancer(ActorAdvancer.Environment environment,
int timestamp)
Actor
createAdvancer in class Mobilepublic Object copy(Object dest)
Copyable
copy in interface Copyablecopy in class Mobilepublic boolean equals(Object other)
equals in class Mobilepublic int hashCode()
hashCode in class Mobile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||