Examples of playOdds()


Examples of me.daddychurchill.CityWorld.Support.Odds.playOdds()

   
    // for each schematic
    for (Clipboard clip: this) {

      // that succeeds the OddsOfAppearance
      if (odds.playOdds(clip.oddsOfAppearance)) {
        platmap.placeSpecificClip(generator, odds, clip);
      }
    }
  }
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.Odds.playOdds()

        if (current == null) {
         
          //TODO Barns and Wells
         
          // farm house here?
          if (!housePlaced && platmapOdds.playOdds(oddsOfFarmHouse) && generator.settings.includeHouses) {
            housePlaced = platmap.setLot(x, z, getHouseLot(generator, platmap, platmapOdds, originX + lastX, originZ + lastZ));
         
          // place the farm
          } else {
           
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.Odds.playOdds()

    // let the user add their stuff first, then plug any remaining holes with our stuff
    //mapsSchematics.populate(generator, platmap);
   
    // random stuff?
    Odds platmapOdds = platmap.getOddsGenerator();
    boolean doBunkers = generator.settings.includeBunkers && platmapOdds.playOdds(oddsOfBunkers);
    boolean didBunkerEntrance = false;
   
    // where it all begins
    int originX = platmap.originX;
    int originZ = platmap.originZ;
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.Odds.playOdds()

         
          //TODO I need to come up with a more elegant way of doing this!
          if (generator.settings.includeBuildings) {

            // what to build?
            boolean buildPark = platmapOdds.playOdds(oddsOfParks);
            if (buildPark)
              current = getPark(generator, platmap, platmapOdds, platmap.originX + x, platmap.originZ + z);
            else
              current = getBackfillLot(generator, platmap, platmapOdds, platmap.originX + x, platmap.originZ + z);
           
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.Odds.playOdds()

         
          // get the height info for this chunk
          heights = HeightInfo.getHeightsFaster(generator, blockX, blockZ);
          if (!heights.anyEmpties && heights.averageHeight < generator.seaLevel - 8) {
            if (!addingBases)
              addingBases = odds.playOdds(oddsOfIsolatedLots);
           
            if (addingBases) {
              if (odds.playOdds(oddsOfUnfinishedBuildings))
                current = new AstralTownEmptyLot(platmap, originX + x, originZ + z);
             
View Full Code Here

Examples of me.daddychurchill.CityWorld.Support.Odds.playOdds()

          if (!heights.anyEmpties && heights.averageHeight < generator.seaLevel - 8) {
            if (!addingBases)
              addingBases = odds.playOdds(oddsOfIsolatedLots);
           
            if (addingBases) {
              if (odds.playOdds(oddsOfUnfinishedBuildings))
                current = new AstralTownEmptyLot(platmap, originX + x, originZ + z);
             
              else {
                switch (odds.getRandomInt(7)) {
                case 1:
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.