Пример #1
0
 public Biom(int width, int height, BiomType BiomType, Random random, Form1 form)
 {
     FieldWidth    = width;
     FieldHeight   = height;
     this.BiomType = BiomType;
     this.random   = random;
     Form          = form;
 }
Пример #2
0
 private void GenerateBiom(BiomType BiomType, int amount)
 {
     Biom[] NeededBiom = new Biom[amount];
     for (int i = 0; i < amount; i++)
     {
         NeededBiom[i] = new Biom(Width, Height, BiomType, random, Form);
         NeededBiom[i].GenerateBiom(ref Cells);
     }
 }
Пример #3
0
 public Biom(int width, int height, BiomType biom_type, int x, int y, int biom_width, int biom_height)
 {
     FieldWidth  = width;
     FieldHeight = height;
     BiomType    = biom_type;
     this.x      = x;
     this.y      = y;
     BiomWidth   = biom_width;
     BiomHeight  = biom_height;
 }
Пример #4
0
 public Cell(int x, int y, BiomType biom_type)
 {
     this.x   = x;
     this.y   = y;
     BiomType = biom_type;
 }