|
||||||||||
| 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.GroundConfig.Implementation
com.threerings.tudey.config.GroundConfig.Original
public static class GroundConfig.Original
An original ground implementation.
| Field Summary | |
|---|---|
ConfigReference<GroundConfig> |
base
The base ground type, if any. |
GroundConfig.EdgeCase[] |
edgeCases
The edge cases (in order of priority). |
boolean |
extendEdge
Whether or not to extend the edge. |
PaintableConfig.Tile[] |
floor
The floor tiles. |
int |
priority
The priority of this ground type. |
| Constructor Summary | |
|---|---|
GroundConfig.Original()
|
|
| Method Summary | |
|---|---|
TudeySceneModel.TileEntry |
createEdge(ConfigManager cfgmgr,
IntTuple caseRotations,
int maxWidth,
int maxHeight,
int elevation)
Creates a new edge tile with the supplied case/rotations and maximum dimensions. |
TudeySceneModel.TileEntry |
createFloor(ConfigManager cfgmgr,
int maxWidth,
int maxHeight,
int elevation)
Creates a new floor tile with the supplied maximum dimensions. |
IntTuple |
getEdgeCaseRotations(TudeySceneModel scene,
ConfigReference<GroundConfig> ref,
int x,
int y,
int elevation)
Determines the case and allowed rotations of the edge tile that matches the specified pattern. |
GroundConfig.Original |
getOriginal(ConfigManager cfgmgr)
Returns a reference to the config's underlying original implementation. |
void |
getUpdateReferences(ConfigReferenceSet refs)
Adds the implementation's update references to the provided set. |
void |
invalidate()
Invalidates any cached data. |
boolean |
isEdge(TudeySceneModel.TileEntry entry,
int elevation)
Checks whether the specified entry matches any edge case. |
boolean |
isEdge(TudeySceneModel.TileEntry entry,
IntTuple caseRotations,
int elevation)
Checks whether the specified entry qualifies as an edge tile. |
boolean |
isFloor(TudeySceneModel scene,
ConfigReference<GroundConfig> ref,
int x,
int y,
int elevation)
Checks whether the specified location qualifies as a floor tile. |
| 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(hgroup="p") public int priority
@Editable(hgroup="p") public boolean extendEdge
@Editable(nullable=true) public ConfigReference<GroundConfig> base
@Editable public PaintableConfig.Tile[] floor
@Editable public GroundConfig.EdgeCase[] edgeCases
| Constructor Detail |
|---|
public GroundConfig.Original()
| Method Detail |
|---|
public boolean isFloor(TudeySceneModel scene,
ConfigReference<GroundConfig> ref,
int x,
int y,
int elevation)
scene - the scene model to check.ref - the config reference of this ground config.elevation - the elevation of the brush.
public TudeySceneModel.TileEntry createFloor(ConfigManager cfgmgr,
int maxWidth,
int maxHeight,
int elevation)
public boolean isEdge(TudeySceneModel.TileEntry entry,
int elevation)
public boolean isEdge(TudeySceneModel.TileEntry entry,
IntTuple caseRotations,
int elevation)
public IntTuple getEdgeCaseRotations(TudeySceneModel scene,
ConfigReference<GroundConfig> ref,
int x,
int y,
int elevation)
public TudeySceneModel.TileEntry createEdge(ConfigManager cfgmgr,
IntTuple caseRotations,
int maxWidth,
int maxHeight,
int elevation)
public void getUpdateReferences(ConfigReferenceSet refs)
GroundConfig.Implementation
getUpdateReferences in class GroundConfig.Implementationpublic GroundConfig.Original getOriginal(ConfigManager cfgmgr)
GroundConfig.Implementation
getOriginal in class GroundConfig.Implementationpublic void invalidate()
GroundConfig.Implementation
invalidate in class GroundConfig.Implementation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||