Examples of toSouth()


Examples of me.daddychurchill.CityWorld.Support.SurroundingRoads.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);

    // crosswalks?
    calculateCrosswalks(roads);
View Full Code Here

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

      decayRoad(chunk, sidewalkWidth, chunk.width - sidewalkWidth, pavementLevel, sidewalkWidth, chunk.width - sidewalkWidth);
     
      // road to the whatever
      if (roads.toNorth())
        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);
View Full Code Here

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

        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);
     
    }
   
    // light posts
View Full Code Here

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

            placeEWBridgePartA(chunk, 14, sidewalkLevel);
            placeEWBridgeCap(chunk, 14, base1Y, sidewalkLevel);
          }
        }
       
      } else if (roads.toNorth() && roads.toSouth()) {
       
        // more bridge beside this one?
        boolean toNorth = HeightInfo.getHeightsFast(generator, originX, originZ - chunk.width).isSea();
        boolean toSouth = HeightInfo.getHeightsFast(generator, originX, originZ + chunk.width).isSea();
       
View Full Code Here

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

            // lights please
            generateLightPost(generator, chunk, context, sidewalkLevel + 5, 7, 0);
            generateLightPost(generator, chunk, context, sidewalkLevel + 5, 8, 15);
          }
         
        } else if (roads.toNorth() && roads.toSouth()) {
          if (HeightInfo.getHeightsFast(generator, originX, originZ - chunk.width).isSea() &&
            HeightInfo.getHeightsFast(generator, originX, originZ + chunk.width).isSea()) {
           
            // lights please
            generateLightPost(generator, chunk, context, sidewalkLevel + 5, 0, 7);
View Full Code Here

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

        chunk.setBlocks(0, sidewalkWidth, sidewalkLevel, sidewalkLevel + 1, sidewalkWidth, chunk.width - sidewalkWidth, sidewalkMaterial);
      if (!roads.toEast())
        chunk.setBlocks(chunk.width - sidewalkWidth, chunk.width, sidewalkLevel, sidewalkLevel + 1, sidewalkWidth, chunk.width - sidewalkWidth, sidewalkMaterial);
      if (!roads.toNorth())
        chunk.setBlocks(sidewalkWidth, chunk.width - sidewalkWidth, sidewalkLevel, sidewalkLevel + 1, 0, sidewalkWidth, sidewalkMaterial);
      if (!roads.toSouth())
        chunk.setBlocks(sidewalkWidth, chunk.width - sidewalkWidth, sidewalkLevel, sidewalkLevel + 1, chunk.width - sidewalkWidth, chunk.width, sidewalkMaterial);
     
      // crosswalks?
      if (cityRoad) {
        calculateCrosswalks(roads);
View Full Code Here

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

          for (int x = 1; x < chunk.width - 1; x++) {
            placeEWTunnelArch(generator, chunk, x, sidewalkLevel, tunnelWallMaterial, tunnelTileMaterial, tunnelCeilingMaterial);
          }
          placeEWTunnelArch(generator, chunk, 15, sidewalkLevel, tunnelWallMaterial, tunnelWallMaterial, tunnelWallMaterial);
         
        } else if (roads.toNorth() && roads.toSouth()) {
         
          // carve out the tunnel
          chunk.setBlocks(2, 14, sidewalkLevel + 1, sidewalkLevel + 6, 0, 16, emptyMaterial);
         
          // place the arches
View Full Code Here

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

          // walls please, this will find the Y the hard way since we are looking at the next chunk over
          for (int x = 0; x < chunk.width; x++) {
            placeRetainingWall(chunk, x, 0, sidewalkLevel, generator.getFarBlockY(originX + x, originZ - 1));
            placeRetainingWall(chunk, x, 15, sidewalkLevel, generator.getFarBlockY(originX + x, originZ + 16));
          }
        } else if (roads.toNorth() && roads.toSouth()) {

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

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

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

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

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