Examples of toEast()


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?
    calculateCrosswalks(roads);
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()

      // clear a little space
      chunk.setLayer(sidewalkLevel, 4, getAirMaterial(generator, sidewalkLevel));
     
      // bridge to the east/west
      if (roads.toWest() && roads.toEast()) {
       
        // more bridge beside this one?
        boolean toWest = HeightInfo.getHeightsFast(generator, originX - chunk.width, originZ).isSea();
        boolean toEast = HeightInfo.getHeightsFast(generator, originX + chunk.width, originZ).isSea();
       
View Full Code Here

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

      }

      // draw a bridge bits
      // bridge to the east/west
      if (cityRoad) {
        if (roads.toWest() && roads.toEast()) {
          if (HeightInfo.getHeightsFast(generator, originX - chunk.width, originZ).isSea() &&
            HeightInfo.getHeightsFast(generator, originX + chunk.width, originZ).isSea()) {
           
            // lights please
            generateLightPost(generator, chunk, context, sidewalkLevel + 5, 7, 0);
View Full Code Here

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

      chunk.setBlocks(chunk.width - sidewalkWidth, chunk.width, sidewalkLevel, sidewalkLevel + 1, chunk.width - sidewalkWidth, chunk.width, sidewalkMaterial);
     
      // sidewalk edges
      if (!roads.toWest())
        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);
View Full Code Here

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

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

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

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

             
      // 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.toEast()

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