public Biom(int width, int height, BiomType BiomType, Random random, Form1 form) { FieldWidth = width; FieldHeight = height; this.BiomType = BiomType; this.random = random; Form = form; }
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); } }
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; }
public Cell(int x, int y, BiomType biom_type) { this.x = x; this.y = y; BiomType = biom_type; }