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

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.StatefulEntry
All Implemented Interfaces:
Scope, ScopeUpdateListener
Enclosing class:
ActorSprite

public static class ActorSprite.StatefulEntry
extends ActorSprite.Original

Executes animations on the corresponding entry sprite.


Field Summary
protected  Model _entryModel
          The model corresponding to the entry sprite.
protected  int _lastStateEntered
          The time at which we entered the last state.
protected  Animation[] _states
          Animations for the various states.
 
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
ActorSprite.StatefulEntry(TudeyContext ctx, Scope parentScope, ActorSpriteConfig.StatefulEntry config)
          Creates a new implementation.
 
Method Summary
 void setConfig(ActorSpriteConfig config)
          (Re)configures the implementation.
 void update(Actor actor)
          Updates the implementation with new interpolated state.
 
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, getAttachedScale, 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

_entryModel

protected Model _entryModel
The model corresponding to the entry sprite.


_states

protected Animation[] _states
Animations for the various states.


_lastStateEntered

protected int _lastStateEntered
The time at which we entered the last state.

Constructor Detail

ActorSprite.StatefulEntry

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

Method Detail

setConfig

public void setConfig(ActorSpriteConfig config)
Description copied from class: ActorSprite.Original
(Re)configures the implementation.

Overrides:
setConfig in class ActorSprite.Original

update

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

Overrides:
update in class ActorSprite.Original