Package games.stendhal.tools.tiled

Examples of games.stendhal.tools.tiled.TileSetDefinition


        if (value > 0) {
          /*
           * When the value is 0, it means that there is no tile at
           * that point.
           */
          final TileSetDefinition tileset = objectsLayer.getTilesetFor(value);
          createEntityAt(tileset.getSource(), value
              - tileset.getFirstGid(), xTemp, yTemp);
        }
      }
    }
  }
View Full Code Here


    protected static final int GROUND_INDEX = 42;
    public static final int PORTAL_INDEX = 59;
    protected final int[] wall = { 2, 4, 20, 3, 5, 15, 19, 16, 36, 32, 35, 31, 1 };
   
    public Style(StendhalMapStructure map) {
      TileSetDefinition set = new TileSetDefinition("filler", 1);
      set.setSource("../../tileset/ground/gravel.png");
      map.addTileset(set);
     
      set = new TileSetDefinition("outercorners", 2);
      set.setSource("../../tileset/building/wall/int_wall_dark_red_corners_2.png");
      map.addTileset(set);
     
      set = new TileSetDefinition("wall", 10);
      set.setSource("../../tileset/building/wall/int_wall_dark_red.png");
      map.addTileset(set);
     
      set = new TileSetDefinition("innercorners", 26);
      set.setSource("../../tileset/building/wall/int_wall_dark_red_corners.png");
      map.addTileset(set);
     
      set = new TileSetDefinition("paving", 42);
      set.setSource("../../tileset/ground/brown_paving.png");
      map.addTileset(set);
     
      set = new TileSetDefinition("portal", 44);
      set.setSource("../../tileset/building/decoration/floor_sparkle.png");
      map.addTileset(set);
    }
View Full Code Here

  public void addTilesets(final InputSerializer in) throws IOException,
      ClassNotFoundException {
    final int amount = in.readInt();

    for (int i = 0; i < amount; i++) {
      final TileSetDefinition tileset = (TileSetDefinition) in.readObject(new TileSetDefinition(
          null, -1));
      add(tileset);
    }
  }
View Full Code Here

TOP

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

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.