com.threerings.tudey.data
Class TudeySceneModel.AreaEntry

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.data.TudeySceneModel.Entry
          extended by com.threerings.tudey.data.TudeySceneModel.IdEntry
              extended by com.threerings.tudey.data.TudeySceneModel.AreaEntry
All Implemented Interfaces:
Exportable, Copyable, Cloneable, Comparable<TudeySceneModel.IdEntry>
Enclosing class:
TudeySceneModel

public static class TudeySceneModel.AreaEntry
extends TudeySceneModel.IdEntry

An area entry.


Field Summary
 ConfigReference<AreaConfig> area
          The configuration of the area.
 TudeySceneModel.Vertex[] vertices
          The area vertices.
 
Constructor Summary
TudeySceneModel.AreaEntry()
           
 
Method Summary
 EntryCursor createCursor(TudeyContext ctx, TudeySceneView view)
          Creates a cursor for this entry (or returns null for none).
 SpaceElement createElement(ConfigManager cfgmgr)
          Creates the space element for this entry (or returns null for none).
 Shape createShape(ConfigManager cfgmgr)
          Creates the shape for this entry, or returns null for none.
 EntrySprite createSprite(TudeyContext ctx, TudeySceneView view)
          Creates a sprite for this entry.
 void getBounds(ConfigManager cfgmgr, Rect result)
          Finds the bounds of the entry.
 AreaConfig.Original getConfig(ConfigManager cfgmgr)
          Returns the area config implementation.
 HandlerConfig[] getHandlers(ConfigManager cfgmgr)
          Returns the entry's handler configs, if any.
 String getLogicClassName(ConfigManager cfgmgr)
          Returns the name of the server-side logic class to use for the entry, or null for none.
 void getPreloads(ConfigManager cfgmgr, PreloadableSet preloads)
          Adds the resources to preload for this entry to the supplied set.
 ConfigReference getReference()
          Returns a reference to this entry's config reference.
 String[] getTags(ConfigManager cfgmgr)
          Returns the entry's tags, if any.
 Vector2f getTranslation(ConfigManager cfgmgr)
          Returns the entry's approximate translation.
 boolean isDefaultEntrance(ConfigManager cfgmgr)
          Determines whether the entry represents a default entrance.
 boolean isValid(ConfigManager cfgmgr)
          Determines whether this entry has a valid configuration.
 void setReference(ConfigReference reference)
          Sets this entry's config reference.
 void transform(ConfigManager cfgmgr, Transform3D xform)
          Transforms the entry.
 
Methods inherited from class com.threerings.tudey.data.TudeySceneModel.IdEntry
compareTo, getId, getKey, setId
 
Methods inherited from class com.threerings.tudey.data.TudeySceneModel.Entry
createPatrolPath, getCollisionFlags, getElevation, getModel, getRotation
 
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

area

@Editable(nullable=true)
public ConfigReference<AreaConfig> area
The configuration of the area.


vertices

@Editable
public TudeySceneModel.Vertex[] vertices
The area vertices.

Constructor Detail

TudeySceneModel.AreaEntry

public TudeySceneModel.AreaEntry()
Method Detail

getConfig

public AreaConfig.Original getConfig(ConfigManager cfgmgr)
Returns the area config implementation.


setReference

public void setReference(ConfigReference reference)
Description copied from class: TudeySceneModel.Entry
Sets this entry's config reference.

Specified by:
setReference in class TudeySceneModel.Entry

getReference

public ConfigReference getReference()
Description copied from class: TudeySceneModel.Entry
Returns a reference to this entry's config reference.

Specified by:
getReference in class TudeySceneModel.Entry

isValid

public boolean isValid(ConfigManager cfgmgr)
Description copied from class: TudeySceneModel.Entry
Determines whether this entry has a valid configuration.

Specified by:
isValid in class TudeySceneModel.Entry

getBounds

public void getBounds(ConfigManager cfgmgr,
                      Rect result)
Description copied from class: TudeySceneModel.Entry
Finds the bounds of the entry.

Overrides:
getBounds in class TudeySceneModel.Entry

getLogicClassName

public String getLogicClassName(ConfigManager cfgmgr)
Description copied from class: TudeySceneModel.Entry
Returns the name of the server-side logic class to use for the entry, or null for none.

Specified by:
getLogicClassName in class TudeySceneModel.Entry

getTags

public String[] getTags(ConfigManager cfgmgr)
Description copied from class: TudeySceneModel.Entry
Returns the entry's tags, if any.

Specified by:
getTags in class TudeySceneModel.Entry

getHandlers

public HandlerConfig[] getHandlers(ConfigManager cfgmgr)
Description copied from class: TudeySceneModel.Entry
Returns the entry's handler configs, if any.

Specified by:
getHandlers in class TudeySceneModel.Entry

isDefaultEntrance

public boolean isDefaultEntrance(ConfigManager cfgmgr)
Description copied from class: TudeySceneModel.Entry
Determines whether the entry represents a default entrance.

Overrides:
isDefaultEntrance in class TudeySceneModel.Entry

getTranslation

public Vector2f getTranslation(ConfigManager cfgmgr)
Description copied from class: TudeySceneModel.Entry
Returns the entry's approximate translation.

Overrides:
getTranslation in class TudeySceneModel.Entry

createShape

public Shape createShape(ConfigManager cfgmgr)
Description copied from class: TudeySceneModel.Entry
Creates the shape for this entry, or returns null for none.

Overrides:
createShape in class TudeySceneModel.Entry

transform

public void transform(ConfigManager cfgmgr,
                      Transform3D xform)
Description copied from class: TudeySceneModel.Entry
Transforms the entry.

Overrides:
transform in class TudeySceneModel.Entry

createElement

public SpaceElement createElement(ConfigManager cfgmgr)
Description copied from class: TudeySceneModel.Entry
Creates the space element for this entry (or returns null for none).

Overrides:
createElement in class TudeySceneModel.Entry

getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Description copied from class: TudeySceneModel.Entry
Adds the resources to preload for this entry to the supplied set.

Specified by:
getPreloads in class TudeySceneModel.Entry

createCursor

public EntryCursor createCursor(TudeyContext ctx,
                                TudeySceneView view)
Description copied from class: TudeySceneModel.Entry
Creates a cursor for this entry (or returns null for none).

Overrides:
createCursor in class TudeySceneModel.Entry

createSprite

public EntrySprite createSprite(TudeyContext ctx,
                                TudeySceneView view)
Description copied from class: TudeySceneModel.Entry
Creates a sprite for this entry.

Specified by:
createSprite in class TudeySceneModel.Entry


Copyright © 2011. All Rights Reserved.