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

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
All Implemented Interfaces:
Scope, ScopeUpdateListener
Direct Known Subclasses:
ActorSprite.Acting
Enclosing class:
ActorSprite

public static class ActorSprite.Moving
extends ActorSprite.Original

Depicts a mobile actor with optional movement animations.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
ActorSprite.Moving(TudeyContext ctx, Scope parentScope, ActorSpriteConfig.Moving config)
          Creates a new implementation.
 
Method Summary
 float getAttachedScale()
          Returns a scale factor for attached models.
 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, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActorSprite.Moving

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

getAttachedScale

public float getAttachedScale()
Description copied from class: ActorSprite.Implementation
Returns a scale factor for attached models.

Overrides:
getAttachedScale in class ActorSprite.Implementation


Copyright © 2011. All Rights Reserved.