Examples of tile()


Examples of com.pointcliki.dizgruntled.GruntzResourceManager.ToggleInfo.tile()

   
    // Find a tile that will toggle
    for (int i = 0; i < fTilesets.length; i++) {
      String type = fTilesets[i].type(tile(i, xy.x(), xy.y()));
      ToggleInfo info = GruntzGame.resourceManager().toggle(type);
      if (info != null && info.tile() != null) {
               
        // Check for giant rock
        if (type.startsWith("GROCK") && !fGiantRockBreaking) {
          if (type.equals("GROCK")) found = breakGiantRock(xy.subtract(GridCoordinate.NORTH_WEST));
          else if (type.equals("GROCK_T")) found = breakGiantRock(xy.subtract(GridCoordinate.WEST));
View Full Code Here

Examples of com.pointcliki.dizgruntled.GruntzResourceManager.ToggleInfo.tile()

          else if (type.equals("GROCK_TR")) found = breakGiantRock(xy.add(new GridCoordinate(-2, 0)));
          else if (type.equals("GROCK_BR")) found = breakGiantRock(xy.add(new GridCoordinate(-2, -2)));
          else if (type.equals("GROCK_BL")) found = breakGiantRock(xy.add(new GridCoordinate(0, -2)));
          else if (type.equals("GROCK_TL")) found = breakGiantRock(xy);
        } else {
          int rep = fTilesets[i].tile(info.tile());
          if (rep >= 0) tile(i, xy.x(), xy.y(), rep);
          found = true;
        }
       
        // Do sfx
View Full Code Here

Examples of org.geotools.geopkg.GeoPackage.tile()

        GeoPackage geopkg = createGeoPackage(map);

        assertTrue(geopkg.features().isEmpty());
        assertTrue(geopkg.rasters().isEmpty());
        assertEquals(1, geopkg.tiles().size());
        assertNotNull(geopkg.tile("World_Lakes"));
    }

    GeoPackage createGeoPackage(WebMap map) throws IOException {
        assertTrue(map instanceof RawMap);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.