|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.tudey.data.TudeySceneModel.Entry
com.threerings.tudey.data.TudeySceneModel.TileEntry
public static class TudeySceneModel.TileEntry
A tile entry. Tiles are identified by their locations.
| Field Summary | |
|---|---|
int |
elevation
The tile's elevation. |
int |
rotation
The tile's rotation. |
ConfigReference<TileConfig> |
tile
The configuration of the tile. |
| Constructor Summary | |
|---|---|
TudeySceneModel.TileEntry()
|
|
| Method Summary | |
|---|---|
EntryCursor |
createCursor(TudeyContext ctx,
TudeySceneView view)
Creates a cursor 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. |
int |
encode(int idx)
Returns the encoded form of this tile entry. |
void |
getBounds(ConfigManager cfgmgr,
Rect result)
Finds the bounds of the entry. |
int |
getCollisionFlags(TileConfig.Original config,
int x,
int y)
Returns the tile's collision flags at the specified coordinates. |
TileConfig.Original |
getConfig(ConfigManager cfgmgr)
Resolves the tile's configuration. |
int |
getElevation()
Returns the elevation of the entry, or Integer.MIN_VALUE for none. |
HandlerConfig[] |
getHandlers(ConfigManager cfgmgr)
Returns the entry's handler configs, if any. |
int |
getHeight(TileConfig.Original config)
Returns the height of this tile after rotation. |
Object |
getKey()
Returns the key for this entry. |
Coord |
getLocation()
Returns a reference to the tile's location. |
String |
getLogicClassName(ConfigManager cfgmgr)
Returns the name of the server-side logic class to use for the entry, or null for none. |
ConfigReference<ModelConfig> |
getModel(ConfigManager cfgmgr)
Returns a reference to the model associated with the entry, if any. |
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. |
void |
getRegion(TileConfig.Original config,
Rectangle result)
Populates the supplied rectangle with the region covered by this tile. |
float |
getRotation(ConfigManager cfgmgr)
Returns the entry's approximate rotation. |
String[] |
getTags(ConfigManager cfgmgr)
Returns the entry's tags, if any. |
void |
getTransform(TileConfig.Original config,
Transform3D result)
Populates the supplied transform with the transform of this tile. |
Vector2f |
getTranslation(ConfigManager cfgmgr)
Returns the entry's approximate translation. |
int |
getWidth(TileConfig.Original config)
Returns the width of this tile after rotation. |
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.Entry |
|---|
createElement, createPatrolPath, getCollisionFlags |
| 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 |
|---|
@Editable(nullable=true) public ConfigReference<TileConfig> tile
@Editable public int elevation
@Editable(min=0.0,
max=3.0)
public int rotation
| Constructor Detail |
|---|
public TudeySceneModel.TileEntry()
| Method Detail |
|---|
public Coord getLocation()
public int encode(int idx)
idx - the tile config index.public TileConfig.Original getConfig(ConfigManager cfgmgr)
public void getTransform(TileConfig.Original config,
Transform3D result)
config - the resolved configuration of the tile.
public void getRegion(TileConfig.Original config,
Rectangle result)
public int getWidth(TileConfig.Original config)
public int getHeight(TileConfig.Original config)
public int getCollisionFlags(TileConfig.Original config,
int x,
int y)
public Object getKey()
TudeySceneModel.Entry
getKey in class TudeySceneModel.Entrypublic void setReference(ConfigReference reference)
TudeySceneModel.Entry
setReference in class TudeySceneModel.Entrypublic ConfigReference getReference()
TudeySceneModel.Entry
getReference in class TudeySceneModel.Entrypublic boolean isValid(ConfigManager cfgmgr)
TudeySceneModel.Entry
isValid in class TudeySceneModel.Entrypublic int getElevation()
TudeySceneModel.EntryInteger.MIN_VALUE for none.
getElevation in class TudeySceneModel.Entry
public void getBounds(ConfigManager cfgmgr,
Rect result)
TudeySceneModel.Entry
getBounds in class TudeySceneModel.Entrypublic String getLogicClassName(ConfigManager cfgmgr)
TudeySceneModel.Entrynull for none.
getLogicClassName in class TudeySceneModel.Entrypublic String[] getTags(ConfigManager cfgmgr)
TudeySceneModel.Entry
getTags in class TudeySceneModel.Entrypublic HandlerConfig[] getHandlers(ConfigManager cfgmgr)
TudeySceneModel.Entry
getHandlers in class TudeySceneModel.Entrypublic boolean isDefaultEntrance(ConfigManager cfgmgr)
TudeySceneModel.Entry
isDefaultEntrance in class TudeySceneModel.Entrypublic Vector2f getTranslation(ConfigManager cfgmgr)
TudeySceneModel.Entry
getTranslation in class TudeySceneModel.Entrypublic float getRotation(ConfigManager cfgmgr)
TudeySceneModel.Entry
getRotation in class TudeySceneModel.Entrypublic ConfigReference<ModelConfig> getModel(ConfigManager cfgmgr)
TudeySceneModel.Entry
getModel in class TudeySceneModel.Entrypublic Shape createShape(ConfigManager cfgmgr)
TudeySceneModel.Entrynull for none.
createShape in class TudeySceneModel.Entry
public void transform(ConfigManager cfgmgr,
Transform3D xform)
TudeySceneModel.Entry
transform in class TudeySceneModel.Entry
public void getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
TudeySceneModel.Entry
getPreloads in class TudeySceneModel.Entry
public EntryCursor createCursor(TudeyContext ctx,
TudeySceneView view)
TudeySceneModel.Entrynull for none).
createCursor in class TudeySceneModel.Entry
public EntrySprite createSprite(TudeyContext ctx,
TudeySceneView view)
TudeySceneModel.Entry
createSprite in class TudeySceneModel.Entry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||