com.threerings.tudey.config
Class PathConfig.Original

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.PathConfig.Implementation
          extended by com.threerings.tudey.config.PathConfig.Original
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
PathConfig

public static class PathConfig.Original
extends PathConfig.Implementation

An original implementation.


Field Summary
 Color4f color
          The color to use when showing this path in the scene editor.
 boolean defaultEntrance
          Whether or not the path should be used as a default entrance.
 HandlerConfig[] handlers
          The path's event handlers.
 TagConfig tags
          Tags used to identify the path within the scene.
 
Constructor Summary
PathConfig.Original()
          Default constructor.
PathConfig.Original(Color4f color)
          Creates an implementation with the specified color.
 
Method Summary
 PathCursor.Implementation getCursorImplementation(TudeyContext ctx, Scope scope, PathCursor.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 path, or null for none.
 PathConfig.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 path into the provided set.
 PathSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, PathSprite.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.PathConfig.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

color

@Editable(mode="alpha",
          hgroup="c")
@Strippable
public Color4f color
The color to use when showing this path in the scene editor.


defaultEntrance

@Editable(hgroup="c")
@Strippable
public boolean defaultEntrance
Whether or not the path should be used as a default entrance.


tags

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


handlers

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

Constructor Detail

PathConfig.Original

public PathConfig.Original()
Default constructor.


PathConfig.Original

public PathConfig.Original(Color4f color)
Creates an implementation with the specified color.

Method Detail

getLogicClassName

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


getPreloads

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


getOriginal

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

Specified by:
getOriginal in class PathConfig.Implementation

getCursorImplementation

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

Specified by:
getCursorImplementation in class PathConfig.Implementation
scope - the path'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.

getSpriteImplementation

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

Specified by:
getSpriteImplementation in class PathConfig.Implementation
scope - the path'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: PathConfig.Implementation
Invalidates any cached data.

Overrides:
invalidate in class PathConfig.Implementation


Copyright © 2011. All Rights Reserved.