|
||||||||||
| 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.config.TileConfig.Implementation
com.threerings.tudey.config.TileConfig.Original
public static class TileConfig.Original
An original tile implementation.
| Field Summary | |
|---|---|
int[][] |
collisionFlags
The tile's collision flags. |
boolean |
defaultEntrance
Whether or not the tile should be used as a default entrance. |
int |
floorFlags
The tile's floor flags. |
HandlerConfig[] |
handlers
The tile's event handlers. |
int |
height
The height of the tile. |
boolean |
mergeable
Allows control over whether the tile can be merged with others. |
ConfigReference<ModelConfig> |
model
The model to use for the tile. |
TagConfig |
tags
Tags used to identify the tile within the scene. |
int |
width
The width of the tile. |
| Constructor Summary | |
|---|---|
TileConfig.Original()
Default constructor. |
|
TileConfig.Original(String model)
Creates an implementation with the specified model. |
|
| Method Summary | |
|---|---|
int |
getCollisionFlags(int x,
int y,
int rotation,
int tx,
int ty)
Returns the collision flags for the given location for a tile at the specified coordinates. |
TileCursor.Implementation |
getCursorImplementation(TudeyContext ctx,
Scope scope,
TileCursor.Implementation impl)
Creates or updates a cursor implementation for this configuration. |
int |
getHeight(int rotation)
Returns the height of the tile under the supplied rotation. |
String |
getLogicClassName()
Returns the name of the server-side logic class to use for the tile, or null for none. |
TileConfig.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 tile into the provided set. |
void |
getRegion(int x,
int y,
int rotation,
Rectangle result)
Finds the region covered by the tile at the specified coordinates. |
TileSprite.Implementation |
getSpriteImplementation(TudeyContext ctx,
Scope scope,
TileSprite.Implementation impl)
Creates or updates a sprite implementation for this configuration. |
void |
getTransform(int x,
int y,
int elevation,
int rotation,
Transform3D result)
Finds the transform of the tile at the specified coordinates. |
void |
getUpdateReferences(ConfigReferenceSet refs)
Adds the implementation's update references to the provided set. |
int |
getWidth(int rotation)
Returns the width of the tile under the supplied rotation. |
void |
invalidate()
Invalidates any cached data. |
boolean |
isMergeable(ConfigManager cfgmgr)
Checks whether we can merge this tile's model with others in the scene. |
| 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(min=1.0,
hgroup="d")
public int width
@Editable(min=1.0,
hgroup="d")
public int height
@Editable(hgroup="d") @Strippable public boolean defaultEntrance
@Editable(nullable=true) public ConfigReference<ModelConfig> model
@Editable(width=3) public int[][] collisionFlags
@Editable(editor="mask",
mode="floor",
hgroup="f")
public int floorFlags
@Editable(hgroup="f") public boolean mergeable
@Editable public TagConfig tags
@Editable public HandlerConfig[] handlers
| Constructor Detail |
|---|
public TileConfig.Original()
public TileConfig.Original(String model)
| Method Detail |
|---|
public boolean isMergeable(ConfigManager cfgmgr)
public void getTransform(int x,
int y,
int elevation,
int rotation,
Transform3D result)
public void getRegion(int x,
int y,
int rotation,
Rectangle result)
public int getWidth(int rotation)
public int getHeight(int rotation)
public int getCollisionFlags(int x,
int y,
int rotation,
int tx,
int ty)
public String getLogicClassName()
null for none.
public void getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
public void getUpdateReferences(ConfigReferenceSet refs)
TileConfig.Implementation
getUpdateReferences in class TileConfig.Implementationpublic TileConfig.Original getOriginal(ConfigManager cfgmgr)
TileConfig.Implementation
getOriginal in class TileConfig.Implementation
public TileCursor.Implementation getCursorImplementation(TudeyContext ctx,
Scope scope,
TileCursor.Implementation impl)
TileConfig.Implementation
getCursorImplementation in class TileConfig.Implementationscope - the tile's expression scope.impl - an existing implementation to reuse, if possible.
null if no implementation could be created.
public TileSprite.Implementation getSpriteImplementation(TudeyContext ctx,
Scope scope,
TileSprite.Implementation impl)
TileConfig.Implementation
getSpriteImplementation in class TileConfig.Implementationscope - the tile's expression scope.impl - an existing implementation to reuse, if possible.
null if no implementation could be created.public void invalidate()
TileConfig.Implementation
invalidate in class TileConfig.Implementation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||