com.threerings.tudey.config
Class AreaConfig.Original

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

public static class AreaConfig.Original
extends AreaConfig.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 area should be used as a default entrance.
 HandlerConfig[] handlers
          The area's event handlers.
 TagConfig tags
          Tags used to identify the area within the scene.
 
Constructor Summary
AreaConfig.Original()
          Default constructor.
AreaConfig.Original(Color4f color)
          Creates an implementation with the specified color.
 
Method Summary
 AreaCursor.Implementation getCursorImplementation(TudeyContext ctx, Scope scope, AreaCursor.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 area, or null for none.
 AreaConfig.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 area into the provided set.
 AreaSprite.Implementation getSpriteImplementation(TudeyContext ctx, Scope scope, AreaSprite.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.AreaConfig.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 area should be used as a default entrance.


tags

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


handlers

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

Constructor Detail

AreaConfig.Original

public AreaConfig.Original()
Default constructor.


AreaConfig.Original

public AreaConfig.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 area, or null for none.


getPreloads

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


getOriginal

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

Specified by:
getOriginal in class AreaConfig.Implementation

getCursorImplementation

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

Specified by:
getCursorImplementation in class AreaConfig.Implementation
scope - the area'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 AreaSprite.Implementation getSpriteImplementation(TudeyContext ctx,
                                                         Scope scope,
                                                         AreaSprite.Implementation impl)
Description copied from class: AreaConfig.Implementation
Creates or updates a sprite implementation for this configuration.

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

Overrides:
invalidate in class AreaConfig.Implementation


Copyright © 2011. All Rights Reserved.