com.threerings.tudey.client.sprite
Class ActorSprite.Acting

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.tudey.client.sprite.ActorSprite.Implementation
          extended by com.threerings.tudey.client.sprite.ActorSprite.Original
              extended by com.threerings.tudey.client.sprite.ActorSprite.Moving
                  extended by com.threerings.tudey.client.sprite.ActorSprite.Acting
All Implemented Interfaces:
Scope, ScopeUpdateListener
Enclosing class:
ActorSprite

public static class ActorSprite.Acting
extends ActorSprite.Moving

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

_lastActivity

protected int _lastActivity
The last activity applied.


_lastActivityStarted

protected int _lastActivityStarted
The time at which the last activity was started.


_activities

protected IntMap<ActorSprite.Acting.Activity> _activities
The activity handlers.


_activity

protected ActorSprite.Acting.Activity _activity
The current activity.

Constructor Detail

ActorSprite.Acting

public ActorSprite.Acting(TudeyContext ctx,
                          Scope parentScope,
                          ActorSpriteConfig.Moving config)
Creates a new implementation.


ActorSprite.Acting

protected ActorSprite.Acting(TudeyContext ctx,
                             Scope parentScope)
Creates a new implementation without configuring it.

Method Detail

update

public void update(Actor actor)
Description copied from class: ActorSprite.Implementation
Updates the implementation with new interpolated state.

Overrides:
update in class ActorSprite.Moving

getBase

protected Animation getBase(Mobile actor)
Description copied from class: ActorSprite.Moving
Returns the base animation for the actor.

Overrides:
getBase in class ActorSprite.Moving

activityChanged

protected void activityChanged()
Called when the activity has changed.