com.threerings.tudey.client.sprite
Class EffectSprite

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.tudey.client.sprite.Sprite
          extended by com.threerings.tudey.client.sprite.EffectSprite
All Implemented Interfaces:
Scope, ScopeUpdateListener, TudeySceneView.TickParticipant

public class EffectSprite
extends Sprite
implements TudeySceneView.TickParticipant

Handles the display of a stateless effect.


Nested Class Summary
static class EffectSprite.Animator
          Plays an animation on a target sprite.
static class EffectSprite.Implementation
          The actual sprite implementation.
static class EffectSprite.Original
          Superclass of the original implementations.
 
Field Summary
protected  Effect _effect
          The effect object.
protected  EffectSprite.Implementation _impl
          The effect implementation (null until actually created).
protected static EffectSprite.Implementation NULL_IMPLEMENTATION
          An implementation that does nothing.
 
Fields inherited from class com.threerings.tudey.client.sprite.Sprite
_ctx, _view
 
Fields inherited from class com.threerings.expr.SimpleScope
_parentScope
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
EffectSprite(TudeyContext ctx, TudeySceneView view, Effect effect)
          Creates a new effect sprite.
 
Method Summary
 boolean tick(int delayedTime)
          Ticks the participant.
 
Methods inherited from class com.threerings.tudey.client.sprite.Sprite
createTooltipComponent, dispatchEvent, getFloorFlags, getFloorMask, getModel, getScopeName, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, isClickable, isHoverable, setVisible
 
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

_effect

protected Effect _effect
The effect object.


_impl

protected EffectSprite.Implementation _impl
The effect implementation (null until actually created).


NULL_IMPLEMENTATION

protected static final EffectSprite.Implementation NULL_IMPLEMENTATION
An implementation that does nothing.

Constructor Detail

EffectSprite

public EffectSprite(TudeyContext ctx,
                    TudeySceneView view,
                    Effect effect)
Creates a new effect sprite.

Method Detail

tick

public boolean tick(int delayedTime)
Description copied from interface: TudeySceneView.TickParticipant
Ticks the participant.

Specified by:
tick in interface TudeySceneView.TickParticipant
Parameters:
delayedTime - the current delayed client time.
Returns:
true to continue ticking the participant, false to remove it from the list.