Examples of toNorth()


Examples of me.daddychurchill.CityWorld.Support.SurroundingFloors.toNorth()

      // make sure we don't have needle buildings
      //platmap.generator.reportMessage("Found a skinny tall building");
      return new ConcreteLot(platmap, platmap.originX + platX, platmap.originZ + platZ);
     
    // if nothing to north/south or west/east then no insets for us
    } else if ((!neighborFloors.toNorth() && !neighborFloors.toSouth()) ||
           (!neighborFloors.toWest() && !neighborFloors.toEast())) {

      // clear insets
//      insetInsetted = false;
    }
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.SurroundingLots.toNorth()

    if (generator.worldEnvironment == Environment.NETHER) {
      dividerMaterial = isolationNetherMaterial;
    }
   
    // draw the isolation blocks
    if (!farms.toNorth()) {
      chunk.setBlocks(1, 15, generator.streetLevel, 0, 1, dividerMaterial);
      if (farms.toWest())
        chunk.setBlock(0, generator.streetLevel, 0, dividerMaterial);
      if (farms.toEast())
        chunk.setBlock(15, generator.streetLevel, 0, dividerMaterial);
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.SurroundingLots.toNorth()

      if (farms.toEast())
        chunk.setBlock(15, generator.streetLevel, 15, dividerMaterial);
    }
    if (!farms.toWest()) {
      chunk.setBlocks(0, 1, generator.streetLevel, 1, 15, dividerMaterial);
      if (farms.toNorth())
        chunk.setBlock(0, generator.streetLevel, 0, dividerMaterial);
      if (farms.toSouth())
        chunk.setBlock(0, generator.streetLevel, 15, dividerMaterial);
    }
    if (!farms.toEast()) {
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.SurroundingLots.toNorth()

      if (farms.toSouth())
        chunk.setBlock(0, generator.streetLevel, 15, dividerMaterial);
    }
    if (!farms.toEast()) {
      chunk.setBlocks(15, 16, generator.streetLevel, 1, 15, dividerMaterial);
      if (farms.toNorth())
        chunk.setBlock(15, generator.streetLevel, 0, dividerMaterial);
      if (farms.toSouth())
        chunk.setBlock(15, generator.streetLevel, 15, dividerMaterial);
    }
  }
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.SurroundingLots.toNorth()

     
      // clear out the rest
      chunk.setBlocks(0, chunk.width, lowestY + waterDepth, highestY + 1, 0, chunk.width, getAirMaterial(generator, lowestY + waterDepth));
     
      // outer columns and walls as needed
      if (neighbors.toNorth()) {
        chunk.setBlocks(3, 5, lowestY, highestY, 0, 1, cisternMaterial);
        chunk.setBlocks(11, 13, lowestY, highestY, 0, 1, cisternMaterial);
      } else
        chunk.setBlocks(0, 16, lowestY, highestY + 1, 0, 1, cisternMaterial);
      if (neighbors.toSouth()) {
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.SurroundingLots.toNorth()

    chunk.setLayer(highestY + 2, generator.oreProvider.subsurfaceMaterial);
    chunk.setLayer(highestY + 3, generator.oreProvider.surfaceMaterial);
   
    // surface features
    int surfaceY = generator.streetLevel + 1;
    if (!neighbors.toNorth() && HeightInfo.isBuildableToNorth(generator, chunk)) {
      chunk.setBlocks(0, 6, surfaceY, surfaceY + 1, 0, 1, columnMaterial);
      chunk.setBlocks(0, 6, surfaceY + 1, surfaceY + 2, 0, 1, fenceMaterial);
      chunk.setBlocks(10, 16, surfaceY, surfaceY + 1, 0, 1, columnMaterial);
      chunk.setBlocks(10, 16, surfaceY + 1, surfaceY + 2, 0, 1, fenceMaterial);
      chunk.setBlocks(6, surfaceY, surfaceY + 2, 0, columnMaterial);
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.SurroundingLots.toNorth()

    int surfaceY = generator.streetLevel + 1;
   
    // way down?
    if (generator.settings.includeCisterns) {
      SurroundingLots neighbors = new SurroundingLots(platmap, platX, platZ);
      if (!neighbors.toNorth() && HeightInfo.isBuildableToNorth(generator, chunk)) {
        int lowestY = generator.streetLevel - cisternDepth + 1 + waterDepth;
        chunk.setBlocks(4, 7, lowestY, lowestY + 1, 1, 2, ledgeMaterial);
        chunk.setLadder(5, lowestY + 1, surfaceY, 1, Direction.General.SOUTH);
        chunk.setTrapDoor(5, surfaceY, 1, Direction.TrapDoor.EAST);
      }
View Full Code Here

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

    // 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);
   
//    // crosswalks?
View Full Code Here

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

//      if (crosswalkEast)
//        generateWECrosswalk(chunk, chunk.width - sidewalkWidth, chunk.width, pavementLevel, sidewalkWidth, chunk.width - sidewalkWidth);
//    }
     
    // 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.toNorth()

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