|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.tudey.config.ActorConfig.Implementation
com.threerings.tudey.config.ActorConfig.Original
public static class ActorConfig.Original
Superclass of the original implementations.
| Field Summary | |
|---|---|
int |
collisionFlags
Determines which collision categories the actor belongs to. |
int |
collisionMask
Determines which collision categories the actor collides with. |
boolean |
defaultEntrance
Whether or not the actor should be used as a default entrance. |
HandlerConfig[] |
handlers
The actor's event handlers. |
boolean |
isStatic
Whether or not the actor is "static" (always in clients' area of interest, notifies the scene manager when its state changes). |
ShapeConfig |
shape
The shape of the actor. |
int |
spawnAdjustMask
Used as the collision mask when adjusting a spawn point and determining if it's reachable from the original spawn point. |
int |
spawnMask
If non-zero, the spawn point will be adjusted so that the actor doesn't collide with anything that matches the mask (if possible). |
ActorSpriteConfig |
sprite
The type of sprite to use for the actor. |
TagConfig |
tags
Tags used to identify the actor within the scene. |
| Constructor Summary | |
|---|---|
ActorConfig.Original()
|
|
| Method Summary | |
|---|---|
Actor |
createActor(ConfigReference<ActorConfig> config,
int id,
int created,
Vector2f translation,
float rotation)
Creates a new actor of the type associated with this config. |
String |
getLogicClassName()
Returns the name of the server-side logic class to use for the actor. |
ActorConfig.Original |
getOriginal(ConfigManager cfgmgr)
Returns a reference to the config's underlying original implementation. |
void |
getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
Adds the resources to preload for this actor into the provided set. |
ActorSprite.Implementation |
getSpriteImplementation(TudeyContext ctx,
Scope scope,
ActorSprite.Implementation impl)
Creates or updates a sprite implementation for this configuration. |
void |
invalidate()
Invalidates any cached data. |
| Methods inherited from class com.threerings.tudey.config.ActorConfig.Implementation |
|---|
getUpdateReferences |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Editable public ActorSpriteConfig sprite
@Editable public ShapeConfig shape
@Editable public TagConfig tags
@Editable public HandlerConfig[] handlers
@Editable @Strippable public boolean isStatic
@Editable(hgroup="d") @Strippable public boolean defaultEntrance
@Editable(editor="mask",
mode="collision",
hgroup="d")
@Strippable
public int spawnMask
@Editable(editor="mask",
mode="collision",
hgroup="d")
@Strippable
public int spawnAdjustMask
@Editable(editor="mask",
mode="collision",
hgroup="c")
public int collisionFlags
@Editable(editor="mask",
mode="collision",
hgroup="c")
public int collisionMask
| Constructor Detail |
|---|
public ActorConfig.Original()
| Method Detail |
|---|
public String getLogicClassName()
public Actor createActor(ConfigReference<ActorConfig> config,
int id,
int created,
Vector2f translation,
float rotation)
public void getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
public ActorConfig.Original getOriginal(ConfigManager cfgmgr)
ActorConfig.Implementation
getOriginal in class ActorConfig.Implementation
public ActorSprite.Implementation getSpriteImplementation(TudeyContext ctx,
Scope scope,
ActorSprite.Implementation impl)
ActorConfig.Implementation
getSpriteImplementation in class ActorConfig.Implementationscope - the actor's expression scope.impl - an existing implementation to reuse, if possible.
null if no implementation could be created.public void invalidate()
ActorConfig.Implementation
invalidate in class ActorConfig.Implementation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||