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:
Michael Bayne
2010-11-08 19:41:52 +00:00
parent b1bca1f97f
commit fbeba68787
3 changed files with 33 additions and 33 deletions
@@ -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
* &lt;tileset name="Sample Object Tileset"&gt; * <tileset name="Sample Object Tileset">
* &lt;imagePath&gt;path/to/image.png&lt;/imagePath&gt; * <imagePath>path/to/image.png</imagePath>
* &lt;!-- the widths (per row) of each tile in pixels --&gt; * <!-- the widths (per row) of each tile in pixels -->
* &lt;widths&gt;265&lt;/widths&gt; * <widths>265</widths>
* &lt;!-- the heights (per row) of each tile in pixels --&gt; * <!-- the heights (per row) of each tile in pixels -->
* &lt;heights&gt;224&lt;/heights&gt; * <heights>224</heights>
* &lt;!-- the number of tiles in each row --&gt; * <!-- the number of tiles in each row -->
* &lt;tileCounts&gt;4&lt;/tileCounts&gt; * <tileCounts>4</tileCounts>
* &lt;!-- the offset in pixels to the upper left tile --&gt; * <!-- the offset in pixels to the upper left tile -->
* &lt;offsetPos&gt;0, 0&lt;/offsetPos&gt; * <offsetPos>0, 0</offsetPos>
* &lt;!-- the gap between tiles in pixels --&gt; * <!-- the gap between tiles in pixels -->
* &lt;gapSize&gt;0, 0&lt;/gapSize&gt; * <gapSize>0, 0</gapSize>
* &lt;!-- the widths (in unit tile count) of the objects --&gt; * <!-- the widths (in unit tile count) of the objects -->
* &lt;objectWidths&gt;4, 3, 4, 3&lt;/objectWidths&gt; * <objectWidths>4, 3, 4, 3</objectWidths>
* &lt;!-- the heights (in unit tile count) of the objects --&gt; * <!-- the heights (in unit tile count) of the objects -->
* &lt;objectHeights&gt;3, 4, 3, 4&lt;/objectHeights&gt; * <objectHeights>3, 4, 3, 4</objectHeights>
* &lt;!-- the default render priorities for these object tiles --&gt; * <!-- the default render priorities for these object tiles -->
* &lt;priorities&gt;0, 0, -1, 0&lt;/priorities&gt; * <priorities>0, 0, -1, 0</priorities>
* &lt;!-- the constraints for these object tiles --&gt; * <!-- the constraints for these object tiles -->
* &lt;constraints&gt;ATTACH_N, ATTACH_E, ATTACH_S, ATTACH_W&lt;/constraints&gt; * <constraints>ATTACH_N, ATTACH_E, ATTACH_S, ATTACH_W</constraints>
* &lt;/tileset&gt; * </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
* &lt;tileset name="Sample Uniform Tileset"&gt; * <tileset name="Sample Uniform Tileset">
* &lt;imagePath&gt;path/to/image.png&lt;/imagePath&gt; * <imagePath>path/to/image.png</imagePath>
* &lt;!-- the width of each tile in pixels --&gt; * <!-- the width of each tile in pixels -->
* &lt;width&gt;64&lt;/width&gt; * <width>64</width>
* &lt;!-- the height of each tile in pixels --&gt; * <!-- the height of each tile in pixels -->
* &lt;height&gt;48&lt;/height&gt; * <height>48</height>
* &lt;/tileset&gt; * </tileset>
* </pre> * }
*/ */
public class UniformTileSetRuleSet extends TileSetRuleSet public class UniformTileSetRuleSet extends TileSetRuleSet
{ {