com.threerings.tudey.config
Class PlaceableConfig.Original

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.PlaceableConfig.Implementation
          extended by com.threerings.tudey.config.PlaceableConfig.Original
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
PlaceableConfig.Marker, PlaceableConfig.Prop
Enclosing class:
PlaceableConfig

public abstract static class PlaceableConfig.Original
extends PlaceableConfig.Implementation

Superclass of the original implementations.


Field Summary
 boolean defaultEntrance
          Whether or not the placeable should be used as a default entrance.
 HandlerConfig[] handlers
          The area's event handlers.
 ConfigReference<ModelConfig> model
          The model to use to represent the placeable on the client.
 QuaternionVariable rotationOffset
          A random offset to apply when placing.
 ShapeConfig shape
          The shape of the placeable.
 TagConfig tags
          Tags used to identify the placeable within the scene.
 
Constructor Summary
PlaceableConfig.Original()
           
 
Method Summary
 int getCollisionFlags()
          Returns the placeable's collision flags.
 PlaceableCursor.Implementation getCursorImplementation(TudeyContext ctx, Scope scope, PlaceableCursor.Implementation impl)
          Creates or updates a cursor implementation for this configuration.
 String getLogicClassName()
          Returns the name of the server-side logic class to use for the placeable, or null for none.
 PlaceableConfig.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 placeable into the provided set.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.tudey.config.PlaceableConfig.Implementation
getSpriteImplementation, 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

defaultEntrance

@Editable
public boolean defaultEntrance
Whether or not the placeable should be used as a default entrance.


rotationOffset

@Editable
public QuaternionVariable rotationOffset
A random offset to apply when placing.


model

@Editable(nullable=true)
public ConfigReference<ModelConfig> model
The model to use to represent the placeable on the client.


shape

@Editable
public ShapeConfig shape
The shape of the placeable.


tags

@Editable
public TagConfig tags
Tags used to identify the placeable within the scene.


handlers

@Editable
public HandlerConfig[] handlers
The area's event handlers.

Constructor Detail

PlaceableConfig.Original

public PlaceableConfig.Original()
Method Detail

getCollisionFlags

public int getCollisionFlags()
Returns the placeable's collision flags.


getLogicClassName

public String getLogicClassName()
Returns the name of the server-side logic class to use for the placeable, or null for none.


getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Adds the resources to preload for this placeable into the provided set.


getOriginal

public PlaceableConfig.Original getOriginal(ConfigManager cfgmgr)
Description copied from class: PlaceableConfig.Implementation
Returns a reference to the config's underlying original implementation.

Specified by:
getOriginal in class PlaceableConfig.Implementation

getCursorImplementation

public PlaceableCursor.Implementation getCursorImplementation(TudeyContext ctx,
                                                              Scope scope,
                                                              PlaceableCursor.Implementation impl)
Description copied from class: PlaceableConfig.Implementation
Creates or updates a cursor implementation for this configuration.

Specified by:
getCursorImplementation in class PlaceableConfig.Implementation
scope - the placeable's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.

invalidate

public void invalidate()
Description copied from class: PlaceableConfig.Implementation
Invalidates any cached data.

Overrides:
invalidate in class PlaceableConfig.Implementation


Copyright © 2011. All Rights Reserved.