From 469d35660925902b66e19f6315c001d7aee9468e Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Tue, 10 Aug 2010 22:49:46 +0000 Subject: [PATCH] Mimic TrimmedObjectTileSet's functionality. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@972 ed5b42cb-e716-0410-a449-f6a68f950b19 --- .../com/threerings/media/tile/ObjectTileSet.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/java/com/threerings/media/tile/ObjectTileSet.java b/src/java/com/threerings/media/tile/ObjectTileSet.java index 472ab041..9138d6e8 100644 --- a/src/java/com/threerings/media/tile/ObjectTileSet.java +++ b/src/java/com/threerings/media/tile/ObjectTileSet.java @@ -193,6 +193,22 @@ public class ObjectTileSet extends SwissArmyTileSet return _zations; } + /** + * Returns the base width for the specified object index. + */ + public int getBaseWidth (int tileIdx) + { + return _owidths[tileIdx]; + } + + /** + * Returns the base height for the specified object index. + */ + public int getBaseHeight (int tileIdx) + { + return _oheights[tileIdx]; + } + @Override protected void toString (StringBuilder buf) {