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
* object tileset description looks like so:
*
* <pre>
* &lt;tileset name="Sample Object Tileset"&gt;
* &lt;imagePath&gt;path/to/image.png&lt;/imagePath&gt;
* &lt;!-- the widths (per row) of each tile in pixels --&gt;
* &lt;widths&gt;265&lt;/widths&gt;
* &lt;!-- the heights (per row) of each tile in pixels --&gt;
* &lt;heights&gt;224&lt;/heights&gt;
* &lt;!-- the number of tiles in each row --&gt;
* &lt;tileCounts&gt;4&lt;/tileCounts&gt;
* &lt;!-- the offset in pixels to the upper left tile --&gt;
* &lt;offsetPos&gt;0, 0&lt;/offsetPos&gt;
* &lt;!-- the gap between tiles in pixels --&gt;
* &lt;gapSize&gt;0, 0&lt;/gapSize&gt;
* &lt;!-- the widths (in unit tile count) of the objects --&gt;
* &lt;objectWidths&gt;4, 3, 4, 3&lt;/objectWidths&gt;
* &lt;!-- the heights (in unit tile count) of the objects --&gt;
* &lt;objectHeights&gt;3, 4, 3, 4&lt;/objectHeights&gt;
* &lt;!-- the default render priorities for these object tiles --&gt;
* &lt;priorities&gt;0, 0, -1, 0&lt;/priorities&gt;
* &lt;!-- the constraints for these object tiles --&gt;
* &lt;constraints&gt;ATTACH_N, ATTACH_E, ATTACH_S, ATTACH_W&lt;/constraints&gt;
* &lt;/tileset&gt;
* </pre>
* {@code
* <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>
* }
*/
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.
*/
public String getPath(){
public String getPath () {
return _path;
}
@@ -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:
*
* <pre>
* &lt;tileset name="Sample Uniform Tileset"&gt;
* &lt;imagePath&gt;path/to/image.png&lt;/imagePath&gt;
* &lt;!-- the width of each tile in pixels --&gt;
* &lt;width&gt;64&lt;/width&gt;
* &lt;!-- the height of each tile in pixels --&gt;
* &lt;height&gt;48&lt;/height&gt;
* &lt;/tileset&gt;
* </pre>
* {@code
* <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>
* }
*/
public class UniformTileSetRuleSet extends TileSetRuleSet
{