Package Hexel.generation.terrainGenerator.originalPlateGenerator.plate

Examples of Hexel.generation.terrainGenerator.originalPlateGenerator.plate.PlateSum


    this.smallPSCs = new PlateSumChunks();
    this.bigPSCs = new PlateSumChunks();
  }

  public int getHeight(int px, int py) {
    PlateSum small = this.smallPSCs.getPlateSum(px, py);
    PlateSum big = this.bigPSCs.getPlateSum(px / SCALE, py / SCALE);
    double h = 0;
    if (big.baseHeight < 0) {
      h = big.baseHeight;
      if (h + big.heightVar < 0)
        h += big.heightVar;
View Full Code Here


    }
    return (int) h;
  }

  public double getResistanceToChange(int px, int py) {
    PlateSum small = this.smallPSCs.getPlateSum(px, py);
    return small.resistanceToChange;
  }
View Full Code Here

TOP

Related Classes of Hexel.generation.terrainGenerator.originalPlateGenerator.plate.PlateSum

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.