Package me.daddychurchill.CityWorld.Support

Examples of me.daddychurchill.CityWorld.Support.WorldBlocks


      surfaceProvider = SurfaceProvider.loadProvider(this, new Odds(getRelatedSeed()));
      balloonProvider = BalloonProvider.loadProvider(this);
      houseProvider = HouseProvider.loadProvider(this);
      treeProvider = TreeProvider.loadProvider(this, new Odds(getRelatedSeed()));
      pasteProvider = PasteProvider.loadProvider(this);
      decayBlocks = new WorldBlocks(this, new Odds(getRelatedSeed()));
     
      // get ranges and contexts
      height = shapeProvider.getWorldHeight();
      seaLevel = shapeProvider.getSeaLevel();
      landRange = shapeProvider.getLandRange();
View Full Code Here


        topY += chunkOdds.getRandomInt(-1, 2);
       
        // normalize
        int blockX = chunk.getBlockX(x);
        int blockZ = chunk.getBlockZ(z);
        WorldBlocks blocks = new WorldBlocks(generator, chunkOdds);
       
        // draw the disc bit
        placeTopDisc(blocks, blockX, topY, blockZ);
       
        // tall enough?
View Full Code Here

  @Override
  protected void generateActualBlocks(WorldGenerator generator,
      PlatMap platmap, RealChunk chunk, DataContext context, int platX,
      int platZ) {
   
    WorldBlocks blocks = new WorldBlocks(generator, chunkOdds);
    for (int i = 0; i < maxMushrooms(); i++) {
      if (chunkOdds.playOdds(populationChance)) {
        int x = chunkOdds.getRandomInt(4) * 4;
        int z = chunkOdds.getRandomInt(4) * 4;
        int y = getSurfaceAtY(x, z);
View Full Code Here

  @Override
  protected void generateActualBlocks(WorldGenerator generator,
      PlatMap platmap, RealChunk chunk, DataContext context, int platX,
      int platZ) {
   
    WorldBlocks blocks = new WorldBlocks(generator, chunkOdds);
    for (int i = 0; i < maxTrees; i++) {
      if (chunkOdds.playOdds(populationChance)) {
        int x = chunkOdds.getRandomInt(4) * 4;
        int z = chunkOdds.getRandomInt(4) * 4;
        int y = getSurfaceAtY(x, z);
View Full Code Here

TOP

Related Classes of me.daddychurchill.CityWorld.Support.WorldBlocks

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.