More {@code} usage, whitespace tweaks.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1048 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -35,29 +35,29 @@ import com.threerings.media.tile.TileSet;
|
|||||||
* Parses {@link ObjectTileSet} instances from a tileset description. An
|
* Parses {@link ObjectTileSet} instances from a tileset description. An
|
||||||
* object tileset description looks like so:
|
* object tileset description looks like so:
|
||||||
*
|
*
|
||||||
* <pre>
|
* {@code
|
||||||
* <tileset name="Sample Object Tileset">
|
* <tileset name="Sample Object Tileset">
|
||||||
* <imagePath>path/to/image.png</imagePath>
|
* <imagePath>path/to/image.png</imagePath>
|
||||||
* <!-- the widths (per row) of each tile in pixels -->
|
* <!-- the widths (per row) of each tile in pixels -->
|
||||||
* <widths>265</widths>
|
* <widths>265</widths>
|
||||||
* <!-- the heights (per row) of each tile in pixels -->
|
* <!-- the heights (per row) of each tile in pixels -->
|
||||||
* <heights>224</heights>
|
* <heights>224</heights>
|
||||||
* <!-- the number of tiles in each row -->
|
* <!-- the number of tiles in each row -->
|
||||||
* <tileCounts>4</tileCounts>
|
* <tileCounts>4</tileCounts>
|
||||||
* <!-- the offset in pixels to the upper left tile -->
|
* <!-- the offset in pixels to the upper left tile -->
|
||||||
* <offsetPos>0, 0</offsetPos>
|
* <offsetPos>0, 0</offsetPos>
|
||||||
* <!-- the gap between tiles in pixels -->
|
* <!-- the gap between tiles in pixels -->
|
||||||
* <gapSize>0, 0</gapSize>
|
* <gapSize>0, 0</gapSize>
|
||||||
* <!-- the widths (in unit tile count) of the objects -->
|
* <!-- the widths (in unit tile count) of the objects -->
|
||||||
* <objectWidths>4, 3, 4, 3</objectWidths>
|
* <objectWidths>4, 3, 4, 3</objectWidths>
|
||||||
* <!-- the heights (in unit tile count) of the objects -->
|
* <!-- the heights (in unit tile count) of the objects -->
|
||||||
* <objectHeights>3, 4, 3, 4</objectHeights>
|
* <objectHeights>3, 4, 3, 4</objectHeights>
|
||||||
* <!-- the default render priorities for these object tiles -->
|
* <!-- the default render priorities for these object tiles -->
|
||||||
* <priorities>0, 0, -1, 0</priorities>
|
* <priorities>0, 0, -1, 0</priorities>
|
||||||
* <!-- the constraints for these object tiles -->
|
* <!-- the constraints for these object tiles -->
|
||||||
* <constraints>ATTACH_N, ATTACH_E, ATTACH_S, ATTACH_W</constraints>
|
* <constraints>ATTACH_N, ATTACH_E, ATTACH_S, ATTACH_W</constraints>
|
||||||
* </tileset>
|
* </tileset>
|
||||||
* </pre>
|
* }
|
||||||
*/
|
*/
|
||||||
public class ObjectTileSetRuleSet extends SwissArmyTileSetRuleSet
|
public class ObjectTileSetRuleSet extends SwissArmyTileSetRuleSet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public abstract class TileSetRuleSet
|
|||||||
/**
|
/**
|
||||||
* @return The full path used to match tilesets. Consists of the prefile plus _tilesetPath.
|
* @return The full path used to match tilesets. Consists of the prefile plus _tilesetPath.
|
||||||
*/
|
*/
|
||||||
public String getPath(){
|
public String getPath () {
|
||||||
return _path;
|
return _path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,15 +32,15 @@ import static com.threerings.media.Log.log;
|
|||||||
* Parses {@link UniformTileSet} instances from a tileset description. A
|
* Parses {@link UniformTileSet} instances from a tileset description. A
|
||||||
* uniform tileset description looks like so:
|
* uniform tileset description looks like so:
|
||||||
*
|
*
|
||||||
* <pre>
|
* {@code
|
||||||
* <tileset name="Sample Uniform Tileset">
|
* <tileset name="Sample Uniform Tileset">
|
||||||
* <imagePath>path/to/image.png</imagePath>
|
* <imagePath>path/to/image.png</imagePath>
|
||||||
* <!-- the width of each tile in pixels -->
|
* <!-- the width of each tile in pixels -->
|
||||||
* <width>64</width>
|
* <width>64</width>
|
||||||
* <!-- the height of each tile in pixels -->
|
* <!-- the height of each tile in pixels -->
|
||||||
* <height>48</height>
|
* <height>48</height>
|
||||||
* </tileset>
|
* </tileset>
|
||||||
* </pre>
|
* }
|
||||||
*/
|
*/
|
||||||
public class UniformTileSetRuleSet extends TileSetRuleSet
|
public class UniformTileSetRuleSet extends TileSetRuleSet
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user