Example #1
0
 public void set(int x, int y, BiomeCorePoint corePoint, int corePointId)
 {
     this.x           = x;
     this.y           = y;
     this.corePoint   = corePoint;
     this.corePointId = corePointId;
     //this.calcDiff();
     //this.calcAngle();
 }
Example #2
0
        public void createRandomPoints(int globalCount, int xMax, int yMax)
        {
            this.corePoints = new List <BiomeCorePoint>();
            BiomeCorePoint tempPoint = new BiomeCorePoint();

            tempPoint.textureIndex = this.textureIndex;

            for (int i = 0; i < Math.Abs(globalCount * this.globalPercentage); i++)
            {
                tempPoint.createRandom(0, xMax, 0, yMax);
                this.addCorePoint(tempPoint);
            }
        }
Example #3
0
 public BiomePoint(int x, int y, BiomeCorePoint corePoint, int corePointId)
 {
     this.set(x, y, corePoint, corePointId);
 }