com.threerings.tudey.config
Class PlaceableConfig.Prop

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
              extended by com.threerings.tudey.config.PlaceableConfig.Prop
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
PlaceableConfig.ClickableProp, PlaceableConfig.StatefulProp
Enclosing class:
PlaceableConfig

public static class PlaceableConfig.Prop
extends PlaceableConfig.Original

A prop implementation.


Field Summary
 int collisionFlags
          The prop's collision flags.
 int floorFlags
          The prop's floor flags.
 
Fields inherited from class com.threerings.tudey.config.PlaceableConfig.Original
defaultEntrance, handlers, model, rotationOffset, shape, tags
 
Constructor Summary
PlaceableConfig.Prop()
          Default constructor.
PlaceableConfig.Prop(String model)
          Creates a prop with the specified model.
 
Method Summary
 int getCollisionFlags()
          Returns the placeable's collision flags.
 void getPreloads(ConfigManager cfgmgr, PreloadableSet preloads)
          Adds the resources to preload for this placeable into the provided set.
 PlaceableSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, PlaceableSprite.Implementation impl)
          Creates or updates a sprite implementation for this configuration.
 
Methods inherited from class com.threerings.tudey.config.PlaceableConfig.Original
getCursorImplementation, getLogicClassName, getOriginal, invalidate
 
Methods inherited from class com.threerings.tudey.config.PlaceableConfig.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

collisionFlags

@Editable(editor="mask",
          mode="collision",
          hgroup="c")
public int collisionFlags
The prop's collision flags.


floorFlags

@Editable(editor="mask",
          mode="floor",
          hgroup="c")
public int floorFlags
The prop's floor flags.

Constructor Detail

PlaceableConfig.Prop

public PlaceableConfig.Prop()
Default constructor.


PlaceableConfig.Prop

public PlaceableConfig.Prop(String model)
Creates a prop with the specified model.

Method Detail

getCollisionFlags

public int getCollisionFlags()
Description copied from class: PlaceableConfig.Original
Returns the placeable's collision flags.

Overrides:
getCollisionFlags in class PlaceableConfig.Original

getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Description copied from class: PlaceableConfig.Original
Adds the resources to preload for this placeable into the provided set.

Overrides:
getPreloads in class PlaceableConfig.Original

getSpriteImplementation

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

Specified by:
getSpriteImplementation 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.


Copyright © 2011. All Rights Reserved.