|
|||||||||
| 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.ActorSprite.Implementation
com.threerings.tudey.client.sprite.ActorSprite.Original
public static class ActorSprite.Original
Superclass of the original implementations.
| Field Summary | |
|---|---|
protected List<Model> |
_attachedModels
Other models attached to this sprite. |
protected ActorSpriteConfig |
_config
The sprite configuration. |
protected TudeyContext |
_ctx
The renderer context. |
protected boolean |
_initZ
If we have initialized our z value. |
protected Model |
_model
The model. |
protected TudeySceneView |
_view
The owning view. |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
protected |
ActorSprite.Original(TudeyContext ctx,
Scope parentScope)
Creates a new implementation without configuring it. |
|
ActorSprite.Original(TudeyContext ctx,
Scope parentScope,
ActorSpriteConfig config)
Creates a new implementation. |
| Method Summary | |
|---|---|
Component |
createTooltipComponent(String tiptext)
Creates a tooltip component for the implementation (will only be called if ActorSprite.Implementation.getTooltipText() returns true). |
int |
getFloorFlags()
Returns the sprite's floor flags. |
int |
getFloorMask()
Returns the sprite's floor mask. |
protected ConfigReference<ModelConfig> |
getModelConfig()
Returns the configuration to use for the actor model (gives subclasses a chance to adjust the result). |
protected boolean |
isControlled()
Returns true if this sprite is being controlled by the client. |
void |
setConfig(ActorSpriteConfig config)
(Re)configures the implementation. |
void |
update(Actor actor)
Updates the implementation with new interpolated state. |
void |
wasCreated()
Notes that the actor was just created (as opposed to just being added). |
void |
willBeDestroyed()
Notes that the actor is about to be destroyed (as opposed to just being removed). |
| Methods inherited from class com.threerings.tudey.client.sprite.ActorSprite.Implementation |
|---|
clearMessages, dispatchEvent, displayMessage, getAttachedScale, getScopeName, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, isClickable, isHoverable, occupantEntered, occupantLeft, occupantUpdated |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, dispose, 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 ActorSpriteConfig _config
protected boolean _initZ
@Bound protected Model _model
@Bound protected TudeySceneView _view
@Bound protected List<Model> _attachedModels
| Constructor Detail |
|---|
public ActorSprite.Original(TudeyContext ctx,
Scope parentScope,
ActorSpriteConfig config)
protected ActorSprite.Original(TudeyContext ctx,
Scope parentScope)
| Method Detail |
|---|
public void setConfig(ActorSpriteConfig config)
public int getFloorFlags()
ActorSprite.Implementation
getFloorFlags in class ActorSprite.Implementationpublic int getFloorMask()
ActorSprite.Implementation
getFloorMask in class ActorSprite.Implementationpublic Component createTooltipComponent(String tiptext)
ActorSprite.ImplementationActorSprite.Implementation.getTooltipText() returns true).
createTooltipComponent in class ActorSprite.Implementationpublic void update(Actor actor)
ActorSprite.Implementation
update in class ActorSprite.Implementationpublic void wasCreated()
ActorSprite.Implementation
wasCreated in class ActorSprite.Implementationpublic void willBeDestroyed()
ActorSprite.Implementation
willBeDestroyed in class ActorSprite.Implementationprotected ConfigReference<ModelConfig> getModelConfig()
protected boolean isControlled()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||