Ejemplo n.º 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();
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 3
0
 public BiomePoint(int x, int y, BiomeCorePoint corePoint, int corePointId)
 {
     this.set(x, y, corePoint, corePointId);
 }