|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.tudey.client.sprite.TileSprite.Implementation
com.threerings.tudey.client.sprite.TileSprite.Original
public static class TileSprite.Original
An original implementation.
| Field Summary | |
|---|---|
protected TileConfig.Original |
_config
The tile configuration. |
protected TudeyContext |
_ctx
The renderer context. |
protected RectangleElement |
_footprint
The tile footprint. |
protected Transform3D |
_mergeTransform
The transform under which we merged, if any. |
protected Model |
_model
The model. |
protected Scene |
_scene
The scene to which we add our model. |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| 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. |
protected boolean |
maybeMerge()
Merges the model if appropriate. |
protected boolean |
maybeUnmerge()
Unmerges the model if previously merged. |
void |
setConfig(TileConfig.Original config)
(Re)configures the implementation. |
void |
update(TudeySceneModel.TileEntry entry)
Updates the implementation to match the tile state. |
protected void |
updateModel(TudeySceneModel.TileEntry entry)
Ensures that the model is added to the scene and up-to-date. |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TudeyContext _ctx
protected TileConfig.Original _config
protected Model _model
protected RectangleElement _footprint
protected Transform3D _mergeTransform
@Bound protected Scene _scene
| Constructor Detail |
|---|
public TileSprite.Original(TudeyContext ctx,
Scope parentScope,
TileConfig.Original config)
| Method Detail |
|---|
public void setConfig(TileConfig.Original config)
public Model getModel()
TileSprite.Implementationnull for none.
getModel in class TileSprite.Implementationpublic int getFloorFlags()
TileSprite.Implementation
getFloorFlags in class TileSprite.Implementationpublic void update(TudeySceneModel.TileEntry entry)
TileSprite.Implementation
update in class TileSprite.Implementationpublic void dispose()
SimpleScope
dispose in class SimpleScopeprotected void updateModel(TudeySceneModel.TileEntry entry)
protected boolean maybeMerge()
protected boolean maybeUnmerge()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||