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

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

public static class AreaSprite.Original
extends AreaSprite.Implementation

An original implementation.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
AreaSprite.Original(TudeyContext ctx, Scope parentScope, AreaConfig.Original config)
          Creates a new implementation.
 
Method Summary
 void dispose()
          Releases the resources associated with this scope.
 int getEdgeIndex(Model model)
          Returns the index of the specified model within the list of edge models, or -1 if it is not an edge.
 int getVertexIndex(Model model)
          Returns the index of the specified model within the list of vertex models, or -1 if it is not a vertex.
 void setConfig(AreaConfig.Original config)
          (Re)configures the implementation.
 void setVisible(boolean visible)
          Update the visibility.
 void update(TudeySceneModel.AreaEntry entry)
          Updates the implementation to match the area state.
 
Methods inherited from class com.threerings.tudey.client.sprite.AreaSprite.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

AreaSprite.Original

public AreaSprite.Original(TudeyContext ctx,
                           Scope parentScope,
                           AreaConfig.Original config)
Creates a new implementation.

Method Detail

setConfig

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


getVertexIndex

public int getVertexIndex(Model model)
Description copied from class: AreaSprite.Implementation
Returns the index of the specified model within the list of vertex models, or -1 if it is not a vertex.

Overrides:
getVertexIndex in class AreaSprite.Implementation

getEdgeIndex

public int getEdgeIndex(Model model)
Description copied from class: AreaSprite.Implementation
Returns the index of the specified model within the list of edge models, or -1 if it is not an edge.

Overrides:
getEdgeIndex in class AreaSprite.Implementation

update

public void update(TudeySceneModel.AreaEntry entry)
Description copied from class: AreaSprite.Implementation
Updates the implementation to match the area state.

Overrides:
update in class AreaSprite.Implementation

setVisible

public void setVisible(boolean visible)
Description copied from class: AreaSprite.Implementation
Update the visibility.

Overrides:
setVisible in class AreaSprite.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.