Moved some bundle stuff into BundleUtil. Added methods to support

post-parsing tileset validation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@699 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-11-29 21:57:31 +00:00
parent eea46eb827
commit be5428a2f7
5 changed files with 104 additions and 21 deletions
@@ -1,5 +1,5 @@
//
// $Id: SwissArmyTileSet.java,v 1.3 2001/11/27 08:41:01 mdb Exp $
// $Id: SwissArmyTileSet.java,v 1.4 2001/11/29 21:57:31 mdb Exp $
package com.threerings.media.tile;
@@ -43,6 +43,14 @@ public class SwissArmyTileSet extends TileSet
computeTileCount();
}
/**
* Returns the tile count settings.
*/
public int[] getTileCounts ()
{
return _tileCounts;
}
/**
* Computes our total tile count from the individual counts for each
* row.
@@ -65,6 +73,14 @@ public class SwissArmyTileSet extends TileSet
_widths = widths;
}
/**
* Returns the width settings.
*/
public int[] getWidths ()
{
return _widths;
}
/**
* Sets the tile heights for each row. Each row can have tiles of a
* different height.
@@ -74,6 +90,14 @@ public class SwissArmyTileSet extends TileSet
_heights = heights;
}
/**
* Returns the height settings.
*/
public int[] getHeights ()
{
return _heights;
}
/**
* Sets the offset in pixels of the upper left corner of the first
* tile in the first row. If the tileset image has a border, this can