Package me.daddychurchill.CityWorld.Context

Examples of me.daddychurchill.CityWorld.Context.DataContext


    // now the map
    for (int x = 1; x < 16; x++) {
      for (int z = 1; z < 16; z++) {
        int originX = (16 - x) * -10;
        int originZ = (16 - z) * -10;
        DataContext context = generator.shapeProvider.getContext(originX, originZ);
        if (context != null) {
          chunk.setBlock(x, y - 2, z, context.getMapRepresentation());
        }
      }
    }
  }
View Full Code Here


    // now the map
    for (int x = 0; x < 15; x++) {
      for (int z = 1; z < 16; z++) {
        int originX = x * 10;
        int originZ = (16 - z) * -10;
        DataContext context = generator.shapeProvider.getContext(originX, originZ);
        if (context != null) {
          chunk.setBlock(x, y - 2, z, context.getMapRepresentation());
        }
      }
    }
  }
View Full Code Here

    // now the map
    for (int x = 1; x < 16; x++) {
      for (int z = 0; z < 15; z++) {
        int originX = (16 - x) * -10;
        int originZ = z * 10;
        DataContext context = generator.shapeProvider.getContext(originX, originZ);
        if (context != null) {
          chunk.setBlock(x, y - 2, z, context.getMapRepresentation());
        }
      }
    }
  }
View Full Code Here

    // now the map
    for (int x = 0; x < 15; x++) {
      for (int z = 0; z < 15; z++) {
        int originX = x * 10;
        int originZ = z * 10;
        DataContext context = generator.shapeProvider.getContext(originX, originZ);
        if (context != null) {
          chunk.setBlock(x, y - 2, z, context.getMapRepresentation());
        }
      }
    }
  }
View Full Code Here

  protected int floorsBuilt;
  protected int lastHorizontalGirder;
 
  public UnfinishedBuildingLot(PlatMap platmap, int chunkX, int chunkZ) {
    super(platmap, chunkX, chunkZ);
    DataContext context = platmap.context;
   
    // basement only?
    unfinishedBasementOnly = chunkOdds.playOdds(context.oddsOfOnlyUnfinishedBasements);
   
    // how many floors are finished?
View Full Code Here

  }

  public FinishedBuildingLot(PlatMap platmap, int chunkX, int chunkZ) {
    super(platmap, chunkX, chunkZ);
   
    DataContext context = platmap.context;

    // calculate the defaults
    calculateOptions(context);
   
    // floorheight
View Full Code Here

 
  public BuildingLot(PlatMap platmap, int chunkX, int chunkZ) {
    super(platmap, chunkX, chunkZ);
    style = LotStyle.STRUCTURE;
   
    DataContext context = platmap.context;
   
    neighborsHaveIdenticalHeights = chunkOdds.playOdds(context.oddsOfIdenticalBuildingHeights);
    neighborsHaveSimilarHeightsOdds = context.oddsOfSimilarBuildingHeights;
    neighborsHaveSimilarRoundedOdds = context.oddsOfSimilarBuildingRounding;
    aboveFloorHeight = DataContext.FloorHeight;
View Full Code Here

TOP

Related Classes of me.daddychurchill.CityWorld.Context.DataContext

Copyright © 2018 www.massapicom. 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.