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

            SpaceTemplate     = new SpaceTemplate(obstacles, agents);
            pictureBox1.Image = SpaceTemplate.Bitmap;
        }