Package games.stendhal.tools.tiled

Examples of games.stendhal.tools.tiled.StendhalMapStructure


      }

      logger.info("Loading zone: " + name);

      try {
        final StendhalMapStructure zonedata = ServerTMXLoader.load(StendhalRPWorld.MAPS_FOLDER
            + zdesc.getFile());

        if (verifyMap(zdesc, zonedata)) {
          final StendhalRPZone zone = load(zdesc, zonedata);
View Full Code Here


    collision.setName("collision");

    LayerDefinition protection = new LayerDefinition(width, height);
    protection.setName("protection");

    StendhalMapStructure map = new StendhalMapStructure(width, height);

    map.addLayer(floor);
    map.addLayer(terrain);
    map.addLayer(object);
    map.addLayer(roof);
    map.addLayer(collision);
    map.addLayer(protection);

    generateCollisions(collision);

    // solves client caching, but makes other trouble
    //String md5 = Hash.toHexString(Hash.hash(collision.exposeRaw()));
View Full Code Here

TOP

Related Classes of games.stendhal.tools.tiled.StendhalMapStructure

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.