com.threerings.tudey.client.sprite
Class PlaceableSprite.Prop

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.tudey.client.sprite.PlaceableSprite.Implementation
          extended by com.threerings.tudey.client.sprite.PlaceableSprite.Original
              extended by com.threerings.tudey.client.sprite.PlaceableSprite.Prop
All Implemented Interfaces:
Scope, ScopeUpdateListener
Direct Known Subclasses:
PlaceableSprite.ClickableProp
Enclosing class:
PlaceableSprite

public static class PlaceableSprite.Prop
extends PlaceableSprite.Original

A prop implementation.


Field Summary
protected  PlaceableConfig.Prop _config
          The prop configuration.
 
Fields inherited from class com.threerings.tudey.client.sprite.PlaceableSprite.Original
_ctx, _footprint, _model, _scene
 
Fields inherited from class com.threerings.expr.SimpleScope
_parentScope
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
protected PlaceableSprite.Prop(TudeyContext ctx, Scope parentScope)
          Creates a new prop implementation (for use by subclasses).
  PlaceableSprite.Prop(TudeyContext ctx, Scope parentScope, PlaceableConfig.Prop config)
          Creates a new prop implementation.
 
Method Summary
 int getFloorFlags()
          Returns the sprite's floor flags.
 void setConfig(PlaceableConfig.Original config)
          (Re)configures the implementation.
 
Methods inherited from class com.threerings.tudey.client.sprite.PlaceableSprite.Original
createTooltipComponent, dispose, getModel, getModelConfig, update
 
Methods inherited from class com.threerings.tudey.client.sprite.PlaceableSprite.Implementation
dispatchEvent, getScopeName, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, isClickable, isHoverable
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_config

protected PlaceableConfig.Prop _config
The prop configuration.

Constructor Detail

PlaceableSprite.Prop

public PlaceableSprite.Prop(TudeyContext ctx,
                            Scope parentScope,
                            PlaceableConfig.Prop config)
Creates a new prop implementation.


PlaceableSprite.Prop

protected PlaceableSprite.Prop(TudeyContext ctx,
                               Scope parentScope)
Creates a new prop implementation (for use by subclasses).

Method Detail

setConfig

public void setConfig(PlaceableConfig.Original config)
Description copied from class: PlaceableSprite.Original
(Re)configures the implementation.

Overrides:
setConfig in class PlaceableSprite.Original

getFloorFlags

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

Overrides:
getFloorFlags in class PlaceableSprite.Implementation