public void initialisation_pop() { int x; int y; int h = 0; while (h++ < initialisation_population) { x = rd.Next(0, width); y = rd.Next(0, height); if (grid[y, x] == "T") { Human_class pop = new Human_class(x + minus_x, y + minus_y, -1); Human_class.population.Add(pop); } } }
public void spawn() { Human_class.spawning_alone(); Class_Village.spawning(); }