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

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

public static class ActorSprite.Original
extends ActorSprite.Implementation

Superclass of the original implementations.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
ActorSprite.Original(TudeyContext ctx, Scope parentScope, ActorSpriteConfig config)
          Creates a new implementation.
 
Method Summary
 Component createTooltipComponent(String tiptext)
          Creates a tooltip component for the implementation (will only be called if ActorSprite.Implementation.getTooltipText() returns true).
 int getFloorFlags()
          Returns the sprite's floor flags.
 int getFloorMask()
          Returns the sprite's floor mask.
 void setConfig(ActorSpriteConfig config)
          (Re)configures the implementation.
 void update(Actor actor)
          Updates the implementation with new interpolated state.
 void wasCreated()
          Notes that the actor was just created (as opposed to just being added).
 void willBeDestroyed()
          Notes that the actor is about to be destroyed (as opposed to just being removed).
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActorSprite.Original

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

Method Detail

setConfig

public void setConfig(ActorSpriteConfig config)
(Re)configures the implementation.


getFloorFlags

public int getFloorFlags()
Description copied from class: ActorSprite.Implementation
Returns the sprite's floor flags.

Overrides:
getFloorFlags in class ActorSprite.Implementation

getFloorMask

public int getFloorMask()
Description copied from class: ActorSprite.Implementation
Returns the sprite's floor mask.

Overrides:
getFloorMask in class ActorSprite.Implementation

createTooltipComponent

public Component createTooltipComponent(String tiptext)
Description copied from class: ActorSprite.Implementation
Creates a tooltip component for the implementation (will only be called if ActorSprite.Implementation.getTooltipText() returns true).

Overrides:
createTooltipComponent in class ActorSprite.Implementation

update

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

Overrides:
update in class ActorSprite.Implementation

wasCreated

public void wasCreated()
Description copied from class: ActorSprite.Implementation
Notes that the actor was just created (as opposed to just being added).

Overrides:
wasCreated in class ActorSprite.Implementation

willBeDestroyed

public void willBeDestroyed()
Description copied from class: ActorSprite.Implementation
Notes that the actor is about to be destroyed (as opposed to just being removed).

Overrides:
willBeDestroyed in class ActorSprite.Implementation


Copyright © 2011. All Rights Reserved.