Package me.daddychurchill.CityWorld.Support

Examples of me.daddychurchill.CityWorld.Support.SurroundingRoads.toEast()


       
//        // draw pavement
//        chunk.setLayer(pavementLevel - 1, 2, pavementId);
       
        // tunnel to the east/west
        if (roads.toWest() && roads.toEast()) {
         
          // carve out the tunnel
          chunk.setBlocks(0, 16, sidewalkLevel + 1, sidewalkLevel + 6, 2, 14, emptyMaterial);
         
          // place the arches
View Full Code Here


       
      // retaining walls please
      } else if (blockYs.maxHeight > sidewalkLevel) {
       
        // wall to the east/west
        if (roads.toWest() && roads.toEast()) {
         
          // carve out the tunnel
          chunk.setBlocks(0, 16, sidewalkLevel + 1, sidewalkLevel + tunnelHeight + 1, 0, 16, emptyMaterial);
         
          // walls please, this will find the Y the hard way since we are looking at the next chunk over
View Full Code Here

             
      // stuff that only can happen outside of tunnels and bridges
      } else {
       
        // round things out
        if (!roads.toWest() && roads.toEast() && !roads.toNorth() && roads.toSouth())
          generateRoundedOut(generator, context, chunk, sidewalkWidth, sidewalkWidth,
              false, false);
        if (!roads.toWest() && roads.toEast() && roads.toNorth() && !roads.toSouth())
          generateRoundedOut(generator, context, chunk, sidewalkWidth, chunk.width - sidewalkWidth - 4,
              false, true);
View Full Code Here

       
        // round things out
        if (!roads.toWest() && roads.toEast() && !roads.toNorth() && roads.toSouth())
          generateRoundedOut(generator, context, chunk, sidewalkWidth, sidewalkWidth,
              false, false);
        if (!roads.toWest() && roads.toEast() && roads.toNorth() && !roads.toSouth())
          generateRoundedOut(generator, context, chunk, sidewalkWidth, chunk.width - sidewalkWidth - 4,
              false, true);
        if (roads.toWest() && !roads.toEast() && !roads.toNorth() && roads.toSouth())
          generateRoundedOut(generator, context, chunk, chunk.width - sidewalkWidth - 4, sidewalkWidth,
              true, false);
View Full Code Here

          generateRoundedOut(generator, context, chunk, sidewalkWidth, sidewalkWidth,
              false, false);
        if (!roads.toWest() && roads.toEast() && roads.toNorth() && !roads.toSouth())
          generateRoundedOut(generator, context, chunk, sidewalkWidth, chunk.width - sidewalkWidth - 4,
              false, true);
        if (roads.toWest() && !roads.toEast() && !roads.toNorth() && roads.toSouth())
          generateRoundedOut(generator, context, chunk, chunk.width - sidewalkWidth - 4, sidewalkWidth,
              true, false);
        if (roads.toWest() && !roads.toEast() && roads.toNorth() && !roads.toSouth())
          generateRoundedOut(generator, context, chunk, chunk.width - sidewalkWidth - 4, chunk.width - sidewalkWidth - 4,
              true, true);
View Full Code Here

          generateRoundedOut(generator, context, chunk, sidewalkWidth, chunk.width - sidewalkWidth - 4,
              false, true);
        if (roads.toWest() && !roads.toEast() && !roads.toNorth() && roads.toSouth())
          generateRoundedOut(generator, context, chunk, chunk.width - sidewalkWidth - 4, sidewalkWidth,
              true, false);
        if (roads.toWest() && !roads.toEast() && roads.toNorth() && !roads.toSouth())
          generateRoundedOut(generator, context, chunk, chunk.width - sidewalkWidth - 4, chunk.width - sidewalkWidth - 4,
              true, true);
      }

      // crosswalks?
View Full Code Here

          decayRoad(chunk, sidewalkWidth, chunk.width - sidewalkWidth, pavementLevel, 0, sidewalkWidth);
        if (roads.toSouth())
          decayRoad(chunk, sidewalkWidth, chunk.width - sidewalkWidth, pavementLevel, chunk.width - sidewalkWidth, chunk.width);
        if (roads.toWest())
          decayRoad(chunk, 0, sidewalkWidth, pavementLevel, sidewalkWidth, chunk.width - sidewalkWidth);
        if (roads.toEast())
          decayRoad(chunk, chunk.width - sidewalkWidth, chunk.width, pavementLevel, sidewalkWidth, chunk.width - sidewalkWidth);

        // sidewalk corners
        decaySidewalk(generator, chunk, 0, sidewalkWidth, sidewalkLevel, 0, sidewalkWidth);
        decaySidewalk(generator, chunk, 0, sidewalkWidth, sidewalkLevel, chunk.width - sidewalkWidth, chunk.width);
View Full Code Here

        decaySidewalk(generator, chunk, chunk.width - sidewalkWidth, chunk.width, sidewalkLevel, chunk.width - sidewalkWidth, chunk.width);
       
        // sidewalk edges
        if (!roads.toWest())
          decaySidewalk(generator, chunk, 0, sidewalkWidth, sidewalkLevel, sidewalkWidth, chunk.width - sidewalkWidth);
        if (!roads.toEast())
          decaySidewalk(generator, chunk, chunk.width - sidewalkWidth, chunk.width, sidewalkLevel, sidewalkWidth, chunk.width - sidewalkWidth);
        if (!roads.toNorth())
          decaySidewalk(generator, chunk, sidewalkWidth, chunk.width - sidewalkWidth, sidewalkLevel, 0, sidewalkWidth);
        if (!roads.toSouth())
          decaySidewalk(generator, chunk, sidewalkWidth, chunk.width - sidewalkWidth, sidewalkLevel, chunk.width - sidewalkWidth, chunk.width);
View Full Code Here

      // tunnel please
      if (blockYs.maxHeight > sidewalkLevel + tunnelHeight) {
        doSewer = false;
       
        // tunnel to the east/west
        if (roads.toWest() && roads.toEast()) {
          chunk.setBlock(3, sidewalkLevel + 7, 8, context.lightMat);
          chunk.setBlock(12, sidewalkLevel + 7, 7, context.lightMat);
        } else if (roads.toNorth() && roads.toSouth()) {
          chunk.setBlock(8, sidewalkLevel + 7, 3, context.lightMat);
          chunk.setBlock(7, sidewalkLevel + 7, 12, context.lightMat);
View Full Code Here

      boolean vaultNorthEast = false;
      boolean vaultSouthEast = false;
      boolean centerNorth = !roads.toNorth();
      boolean centerSouth = !roads.toSouth();
      boolean centerWest = !roads.toWest();
      boolean centerEast = !roads.toEast();
     
      // empty out the sewer
      chunk.setLayer(base1Y, base2Y - base1Y, getAirMaterial(generator, base1Y));
      Material emptyMaterial = getAirMaterial(generator, sewerY - 1);
         
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.