Make object base dimensions available without having to instantiate an
object tile. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2328 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: TrimmedObjectTileSet.java,v 1.8 2003/02/12 05:33:47 mdb Exp $
|
||||
// $Id: TrimmedObjectTileSet.java,v 1.9 2003/03/26 00:18:55 mdb Exp $
|
||||
|
||||
package com.threerings.media.tile;
|
||||
|
||||
@@ -58,6 +58,22 @@ public class TrimmedObjectTileSet extends TileSet
|
||||
return (_bits == null) ? -1 : _bits[tileIdx].sorient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the base width for the specified object index.
|
||||
*/
|
||||
public int getBaseWidth (int tileIdx)
|
||||
{
|
||||
return _ometrics[tileIdx].width;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the base height for the specified object index.
|
||||
*/
|
||||
public int getBaseHeight (int tileIdx)
|
||||
{
|
||||
return _ometrics[tileIdx].height;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
protected Rectangle computeTileBounds (int tileIndex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user