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
|
||||
* object tileset description looks like so:
|
||||
*
|
||||
* <pre>
|
||||
* <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>
|
||||
* </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>
|
||||
* <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>
|
||||
* </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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user