private void generateAgentsButton_Click(object sender, EventArgs e) { Properties.Seed = Guid.NewGuid().GetHashCode(); propertyGrid1.Refresh(); SpaceTemplateGenerator.GenerateAgents(Properties, SpaceTemplate); pictureBox1.Image = SpaceTemplate.Bitmap; }
private void Generate() { var obstacles = SpaceTemplateGenerator.GenerateObstacles(Properties); var agents = SpaceTemplateGenerator.GenerateAgents(Properties, obstacles); SpaceTemplate = new SpaceTemplate(obstacles, agents); pictureBox1.Image = SpaceTemplate.Bitmap; }