TileManager tilemgr, int tileId, int ox, int oy, Rectangle foot)
{
try {
int tsid = TileUtil.getTileSetId(tileId);
int tidx = TileUtil.getTileIndex(tileId);
BaseSizableTileSet tset = (BaseSizableTileSet)tilemgr.getTileSet(tsid);
if (tset == null) {
return false;
}
int bwidth = tset.getBaseWidth(tidx);
int bheight = tset.getBaseHeight(tidx);
foot.setBounds(ox - bwidth + 1, oy - bheight + 1, bwidth, bheight);
return true;
} catch (Exception e) {
log.warning("Unable to look up object tile for scene object", "tileId", tileId, e);