From fbeba68787bb15c568b4a4cc69d5ebe5cad8c98b Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 8 Nov 2010 19:41:52 +0000 Subject: [PATCH] More {@code} usage, whitespace tweaks. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1048 ed5b42cb-e716-0410-a449-f6a68f950b19 --- .../tile/tools/xml/ObjectTileSetRuleSet.java | 46 +++++++++---------- .../media/tile/tools/xml/TileSetRuleSet.java | 2 +- .../tile/tools/xml/UniformTileSetRuleSet.java | 18 ++++---- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/main/java/com/threerings/media/tile/tools/xml/ObjectTileSetRuleSet.java b/src/main/java/com/threerings/media/tile/tools/xml/ObjectTileSetRuleSet.java index d1335cd7..acdcad0a 100644 --- a/src/main/java/com/threerings/media/tile/tools/xml/ObjectTileSetRuleSet.java +++ b/src/main/java/com/threerings/media/tile/tools/xml/ObjectTileSetRuleSet.java @@ -35,29 +35,29 @@ import com.threerings.media.tile.TileSet; * Parses {@link ObjectTileSet} instances from a tileset description. An * object tileset description looks like so: * - *
- * <tileset name="Sample Object Tileset">
- *   <imagePath>path/to/image.png</imagePath>
- *   <!-- the widths (per row) of each tile in pixels -->
- *   <widths>265</widths>
- *   <!-- the heights (per row) of each tile in pixels -->
- *   <heights>224</heights>
- *   <!-- the number of tiles in each row -->
- *   <tileCounts>4</tileCounts>
- *   <!-- the offset in pixels to the upper left tile -->
- *   <offsetPos>0, 0</offsetPos>
- *   <!-- the gap between tiles in pixels -->
- *   <gapSize>0, 0</gapSize>
- *   <!-- the widths (in unit tile count) of the objects -->
- *   <objectWidths>4, 3, 4, 3</objectWidths>
- *   <!-- the heights (in unit tile count) of the objects -->
- *   <objectHeights>3, 4, 3, 4</objectHeights>
- *   <!-- the default render priorities for these object tiles -->
- *   <priorities>0, 0, -1, 0</priorities>
- *   <!-- the constraints for these object tiles -->
- *   <constraints>ATTACH_N, ATTACH_E, ATTACH_S, ATTACH_W</constraints>
- * </tileset>
- * 
+ * {@code + * + * path/to/image.png + * + * 265 + * + * 224 + * + * 4 + * + * 0, 0 + * + * 0, 0 + * + * 4, 3, 4, 3 + * + * 3, 4, 3, 4 + * + * 0, 0, -1, 0 + * + * ATTACH_N, ATTACH_E, ATTACH_S, ATTACH_W + * + * } */ public class ObjectTileSetRuleSet extends SwissArmyTileSetRuleSet { diff --git a/src/main/java/com/threerings/media/tile/tools/xml/TileSetRuleSet.java b/src/main/java/com/threerings/media/tile/tools/xml/TileSetRuleSet.java index a7a938d5..6741c93c 100644 --- a/src/main/java/com/threerings/media/tile/tools/xml/TileSetRuleSet.java +++ b/src/main/java/com/threerings/media/tile/tools/xml/TileSetRuleSet.java @@ -49,7 +49,7 @@ public abstract class TileSetRuleSet /** * @return The full path used to match tilesets. Consists of the prefile plus _tilesetPath. */ - public String getPath(){ + public String getPath () { return _path; } diff --git a/src/main/java/com/threerings/media/tile/tools/xml/UniformTileSetRuleSet.java b/src/main/java/com/threerings/media/tile/tools/xml/UniformTileSetRuleSet.java index fe2b18a3..3b0f143d 100644 --- a/src/main/java/com/threerings/media/tile/tools/xml/UniformTileSetRuleSet.java +++ b/src/main/java/com/threerings/media/tile/tools/xml/UniformTileSetRuleSet.java @@ -32,15 +32,15 @@ import static com.threerings.media.Log.log; * Parses {@link UniformTileSet} instances from a tileset description. A * uniform tileset description looks like so: * - *
- * <tileset name="Sample Uniform Tileset">
- *   <imagePath>path/to/image.png</imagePath>
- *   <!-- the width of each tile in pixels -->
- *   <width>64</width>
- *   <!-- the height of each tile in pixels -->
- *   <height>48</height>
- * </tileset>
- * 
+ * {@code + * + * path/to/image.png + * + * 64 + * + * 48 + * + * } */ public class UniformTileSetRuleSet extends TileSetRuleSet {