Package com.threerings.media.tile

Examples of com.threerings.media.tile.BaseSizableTileSet


        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);
View Full Code Here

TOP

Related Classes of com.threerings.media.tile.BaseSizableTileSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.