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

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

public static class ActorSprite.StatefulModelEntry
extends ActorSprite.Original

Changes model configurations 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.
 
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.StatefulModelEntry(TudeyContext ctx, Scope parentScope, ActorSpriteConfig.StatefulModelEntry 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.


_lastStateEntered

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

Constructor Detail

ActorSprite.StatefulModelEntry

public ActorSprite.StatefulModelEntry(TudeyContext ctx,
                                      Scope parentScope,
                                      ActorSpriteConfig.StatefulModelEntry 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