Package com.threerings.media.tile

Examples of com.threerings.media.tile.TileManager


        // create the resource manager
        rsrcmgr = new ResourceManager("rsrc");
        rsrcmgr.initBundles(null, getResourceConfig(), null);

        // create our tile manager and repository
        tilemgr = new TileManager(null);
        tilemgr.setTileSetRepository(
            new BundledTileSetRepository(rsrcmgr, null, StageCodes.TILESET_RSRC_SET));

        log.info("Stage server initialized.");
    }
View Full Code Here


            for (int jj=_layerSets.get(ii).size() - 1; jj >= _layerLengths[ii]; jj--) {
                _layerSets.get(ii).remove(jj);
            }
        }

        TileManager tileMgr = _ctx.getTileManager();
        if (tileMgr instanceof EditorTileManager) {
            ((EditorTileManager)tileMgr).clearTestTileSets();
        }

        // insert the new test tiles
View Full Code Here

     * Prior to the color classes popup popping up, recompute the possible values.
     */
    protected void recomputeColorClasses ()
    {
        // add all possible colorization names to the list
        final TileManager tilemgr = _ctx.getTileManager();
        final TreeSet<String> set = Sets.newTreeSet();
        StageMisoSceneModel msmodel = StageMisoSceneModel.getSceneModel(_scene.getSceneModel());
        msmodel.visitObjects(new ObjectVisitor() {
            public void visit (ObjectInfo info) {
                int tsid = TileUtil.getTileSetId(info.tileId);
                TileSet tset;
                try {
                    tset = tilemgr.getTileSet(tsid);
                } catch (NoSuchTileSetException nstse) {
                    return;
                }
                String[] zations;
                if (tset instanceof RecolorableTileSet) {
View Full Code Here

TOP

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

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.