|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.tudey.client.sprite.ActorSprite.Implementation
com.threerings.tudey.client.sprite.ActorSprite.Original
com.threerings.tudey.client.sprite.ActorSprite.Moving
com.threerings.tudey.client.sprite.ActorSprite.Acting
public static class ActorSprite.Acting
Depicts an active actor with activity animations.
| Nested Class Summary | |
|---|---|
protected class |
ActorSprite.Acting.Activity
Handles an activity. |
| Field Summary | |
|---|---|
protected IntMap<ActorSprite.Acting.Activity> |
_activities
The activity handlers. |
protected ActorSprite.Acting.Activity |
_activity
The current activity. |
protected int |
_lastActivity
The last activity applied. |
protected int |
_lastActivityStarted
The time at which the last activity was started. |
| Fields inherited from class com.threerings.tudey.client.sprite.ActorSprite.Moving |
|---|
_currentIdle, _idles, _idleWeights, _movements, _rotations |
| Fields inherited from class com.threerings.tudey.client.sprite.ActorSprite.Original |
|---|
_attachedModels, _config, _ctx, _initZ, _model, _view |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
protected |
ActorSprite.Acting(TudeyContext ctx,
Scope parentScope)
Creates a new implementation without configuring it. |
|
ActorSprite.Acting(TudeyContext ctx,
Scope parentScope,
ActorSpriteConfig.Moving config)
Creates a new implementation. |
| Method Summary | |
|---|---|
protected void |
activityChanged()
Called when the activity has changed. |
protected Animation |
getBase(Mobile actor)
Returns the base animation for the actor. |
void |
update(Actor actor)
Updates the implementation with new interpolated state. |
| Methods inherited from class com.threerings.tudey.client.sprite.ActorSprite.Moving |
|---|
getAttachedScale, getIdle, getMovement, getMovement, getRotation, getRotation, getWeightedAnimation, resolve, resolve, resolve, setConfig |
| Methods inherited from class com.threerings.tudey.client.sprite.ActorSprite.Original |
|---|
createTooltipComponent, getFloorFlags, getFloorMask, getModelConfig, isControlled, wasCreated, willBeDestroyed |
| Methods inherited from class com.threerings.tudey.client.sprite.ActorSprite.Implementation |
|---|
clearMessages, dispatchEvent, displayMessage, getScopeName, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, isClickable, isHoverable, occupantEntered, occupantLeft, occupantUpdated |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, dispose, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _lastActivity
protected int _lastActivityStarted
protected IntMap<ActorSprite.Acting.Activity> _activities
protected ActorSprite.Acting.Activity _activity
| Constructor Detail |
|---|
public ActorSprite.Acting(TudeyContext ctx,
Scope parentScope,
ActorSpriteConfig.Moving config)
protected ActorSprite.Acting(TudeyContext ctx,
Scope parentScope)
| Method Detail |
|---|
public void update(Actor actor)
ActorSprite.Implementation
update in class ActorSprite.Movingprotected Animation getBase(Mobile actor)
ActorSprite.Moving
getBase in class ActorSprite.Movingprotected void activityChanged()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||