Examples of adjacentNeighbors()


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

  public PlatLot validateLot(PlatMap platmap, int platX, int platZ) {
   
    // get connected lots
    SurroundingFloors neighborFloors = getNeighboringFloorCounts(platmap, platX, platZ);
   
    if (!neighborFloors.adjacentNeighbors() && height > 1) {
     
      // 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);
     
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.