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

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.tudey.client.sprite.TileSprite.Implementation
          extended by com.threerings.tudey.client.sprite.TileSprite.Original
All Implemented Interfaces:
Scope, ScopeUpdateListener
Enclosing class:
TileSprite

public static class TileSprite.Original
extends TileSprite.Implementation

An original implementation.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
TileSprite.Original(TudeyContext ctx, Scope parentScope, TileConfig.Original config)
          Creates a new implementation.
 
Method Summary
 void dispose()
          Releases the resources associated with this scope.
 int getFloorFlags()
          Returns the sprite's floor flags.
 Model getModel()
          Returns the model for this implementation, or null for none.
 void setConfig(TileConfig.Original config)
          (Re)configures the implementation.
 void update(TudeySceneModel.TileEntry entry)
          Updates the implementation to match the tile state.
 
Methods inherited from class com.threerings.tudey.client.sprite.TileSprite.Implementation
getScopeName
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TileSprite.Original

public TileSprite.Original(TudeyContext ctx,
                           Scope parentScope,
                           TileConfig.Original config)
Creates a new implementation.

Method Detail

setConfig

public void setConfig(TileConfig.Original config)
(Re)configures the implementation.


getModel

public Model getModel()
Description copied from class: TileSprite.Implementation
Returns the model for this implementation, or null for none.

Overrides:
getModel in class TileSprite.Implementation

getFloorFlags

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

Overrides:
getFloorFlags in class TileSprite.Implementation

update

public void update(TudeySceneModel.TileEntry entry)
Description copied from class: TileSprite.Implementation
Updates the implementation to match the tile state.

Overrides:
update in class TileSprite.Implementation

dispose

public void dispose()
Description copied from class: SimpleScope
Releases the resources associated with this scope.

Overrides:
dispose in class SimpleScope


Copyright © 2011. All Rights Reserved.