示例#1
0
文件: Biom.cs 项目: grenoshka/oop4
 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
文件: Field.cs 项目: grenoshka/oop4
 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
文件: Biom.cs 项目: grenoshka/oop4
 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;
 }