Exemple #1
0
        public void initArena()
        {
            //инциализируем отрисовку и физику

            gh = new GraphicsHelper(pictureBox1);
            ghover = new GraphicsHelper(pictureBoxOverlay);
            ph = new Physics();
            pictureBox2.Image = new Bitmap(pictureBox2.Width, pictureBox2.Height);
            env = new Environment(ph, this);//

            env.draw(gh);
            pictureBoxOverlay.Image = (Image)pictureBox1.Image.Clone();
            foreach (LicsDataWindow dataWnd in dataWnds) dataWnd.Close();
            dataWnds = new List<LicsDataWindow>();
            while (robotListBox.Items.Count != 0)
                robotListBox.Items.RemoveAt(0);
            agents = new Dictionary<string, Agent>();//dispose previous agents
        }