Examples of toEast()


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

          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

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

          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

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

          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

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

        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

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

      // 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

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

      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

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

        chunk.setBlocks(0, 1, sewerY, base2Y, 5, 11, sewerMaterial, chunkOdds, sewerWallData, sewerFloorData);
        chunk.setBlocks(1, 2, base2Y - 1, base2Y, 5, 11, sewerMaterial, chunkOdds, sewerCeilingData, sewerWallData);
      } else {
        chunk.setBlocks(0, 7, sewerY - 1, sewerY, 7, 9, emptyMaterial);
      }
      if (!roads.toEast()) {
        chunk.setBlocks(15, 16, sewerY, base2Y, 5, 11, sewerMaterial, chunkOdds, sewerWallData, sewerFloorData);
        chunk.setBlocks(14, 15, base2Y - 1, base2Y, 5, 11, sewerMaterial, chunkOdds, sewerCeilingData, sewerWallData);
      } else {
        chunk.setBlocks(9, 16, sewerY - 1, sewerY, 7, 9, emptyMaterial);
      }
View Full Code Here

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

      }
      if (roads.toWest()) {
        vaultNorthWest = sewerNorthWestBias;
        vaultSouthWest = sewerSouthWestBias;
      }
      if (roads.toEast()) {
        vaultNorthEast = sewerNorthEastBias;
        vaultSouthEast = sewerSouthEastBias;
      }
     
      // make sure there is a way down
View Full Code Here

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

      }
      if (roads.toWest()) {
        vaultNorthWest = sewerNorthWestBias;
        vaultSouthWest = sewerSouthWestBias;
      }
      if (roads.toEast()) {
        vaultNorthEast = sewerNorthEastBias;
        vaultSouthEast = sewerSouthEastBias;
      }
     
      // make sure there is a way down
View Full Code Here

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

      }
      if (roads.toWest()) {
        chunk.setBlock(3, sewerY - 1, 7, fluidMaterial);
        generateEntryVines(chunk, base2Y - 1, Direction.Vine.WEST, 1, 6, 1, 7, 1, 8, 1, 9);
      }
      if (roads.toEast()) {
        chunk.setBlock(12, sewerY - 1, 8, fluidMaterial);
        generateEntryVines(chunk, base2Y - 1, Direction.Vine.EAST, 14, 6, 14, 7, 14, 8, 14, 9);
      }
     
      // add the various doors
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.