Package com.threerings.media.tile

Examples of com.threerings.media.tile.TrimmedObjectTileSet


        int ty, int orient)
    {
        try {
            int tsid = TileUtil.getTileSetId(tileId);
            int tidx = TileUtil.getTileIndex(tileId);
            TrimmedObjectTileSet tset = (TrimmedObjectTileSet)tilemgr.getTileSet(tsid);
            if (tset == null || (orient == OBJECT_ORIENTATION && tset.getSpotOrient(tidx) < 0)) {
                return null;
            }
            if (orient == OBJECT_ORIENTATION) {
                orient = tset.getSpotOrient(tidx);
            }

            Point opos = MisoUtil.tilePlusFineToFull(_metrics, tx, ty, tset.getXSpot(tidx),
                tset.getYSpot(tidx), new Point());

//             Log.info("Computed location [set=" + tset.getName() +
//                      ", tidx=" + tidx + ", tx=" + tx + ", ty=" + ty +
//                      ", sx=" + tset.getXSpot(tidx) +
//                      ", sy=" + tset.getYSpot(tidx) +
View Full Code Here

TOP

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

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.