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
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2011. All Rights Reserved.