|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.tudey.util.ActorAdvancer
com.threerings.tudey.util.MobileAdvancer
com.threerings.tudey.util.ActiveAdvancer
public class ActiveAdvancer
Advancer for active actors.
| Nested Class Summary | |
|---|---|
protected class |
ActiveAdvancer.Activity
The mapping for an activity. |
| Nested classes/interfaces inherited from class com.threerings.tudey.util.ActorAdvancer |
|---|
ActorAdvancer.Environment |
| Field Summary | |
|---|---|
protected Active |
_active
A casted reference to the active. |
protected IntMap<ActiveAdvancer.Activity> |
_activities
The mappings for the various activities. |
| Fields inherited from class com.threerings.tudey.util.MobileAdvancer |
|---|
_mobile, _otrans, _penetration, MAX_SUBSTEP |
| Fields inherited from class com.threerings.tudey.util.ActorAdvancer |
|---|
_actor, _environment, _shape, _timestamp, _transform |
| Constructor Summary | |
|---|---|
ActiveAdvancer(ActorAdvancer.Environment environment,
Active active,
int timestamp)
Creates a new advancer for the supplied active. |
|
| Method Summary | |
|---|---|
boolean |
canMove()
Determines whether the actor can move. |
boolean |
canRotate()
Determines whether the actor can rotate. |
protected ActiveAdvancer.Activity |
getActivity()
Returns a reference to the mapping for the current activity, or null for none. |
void |
init(Actor actor,
int timestamp)
(Re)initializes the advancer. |
protected void |
mobileStep(float elapsed,
int timestamp)
Executes a step on the mobile. |
protected void |
step(float elapsed)
Takes an Euler step of the specified length. |
| Methods inherited from class com.threerings.tudey.util.MobileAdvancer |
|---|
substep, takeSubsteps |
| Methods inherited from class com.threerings.tudey.util.ActorAdvancer |
|---|
advance, getActor, getTimestamp, jump, transfer, updateShape |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Active _active
protected IntMap<ActiveAdvancer.Activity> _activities
| Constructor Detail |
|---|
public ActiveAdvancer(ActorAdvancer.Environment environment,
Active active,
int timestamp)
| Method Detail |
|---|
public boolean canMove()
public boolean canRotate()
public void init(Actor actor,
int timestamp)
ActorAdvancer
init in class MobileAdvancerprotected void step(float elapsed)
ActorAdvancer
step in class MobileAdvancer
protected void mobileStep(float elapsed,
int timestamp)
MobileAdvancer
mobileStep in class MobileAdvancerprotected ActiveAdvancer.Activity getActivity()
null for none.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||