private void modif(int spawn, string type)
        {
            if (type == "IA_K")
            {
                couple cople = new couple();
                cople.vie = int.Parse(textBox4.Text);
                cople.speed = int.Parse(textBox5.Text);
                cople.damage = int.Parse(textBox12.Text);
                cople.X = savefile.ia_Kamikaze[spawn].X;
                cople.Y = savefile.ia_Kamikaze[spawn].Y;
                savefile.ia_Kamikaze[spawn] = cople;
                manage_k.remove_all();
                for (int i = 0; i < savefile.ia_Kamikaze.Count; i++)
                    manage_k.Add(cople, i);
            }
            else if (type == "b")
            {
                Bonus bonu = new Bonus();
                bonu.speed = int.Parse(textBox17.Text);
                bonu.angle = int.Parse(textBox18.Text);
                bonu.launch = savefile.bonus[spawn].launch;
                bonu.X = openX;
                bonu.Y = openY;
                char types = savefile.bonus[spawn].type;
                if (radioButton3.Checked)
                    types = 'v';
                else if (radioButton4.Checked)
                    types = 'b';
                else if (radioButton5.Checked)
                    types = 'm';
                else if (radioButton6.Checked)
                    types = 'p';
                else if (radioButton7.Checked && textBox18.BackColor == System.Drawing.Color.Green &&
            textBox17.BackColor == System.Drawing.Color.Green)
                {
                    if (radioButton8.Checked)
                        types = 'a';
                    else if (radioButton9.Checked)
                        types = 'c';
                    else if (radioButton10.Checked)
                        types = 's';
                }
                bonu.type = types;
                savefile.bonus[spawn] = bonu;
                ovni.remove_all();
                for (int i = 0; i < savefile.bonus.Count; ++i)
                    ovni.Add(savefile.bonus[i].type, savefile.bonus[i].X, savefile.bonus[i].Y, i);
            }
            else
            {
                quaintuplet quaint = new quaintuplet();
                quaint.color = new Microsoft.Xna.Framework.Color(color2.R, color2.G, color2.B, color2.A);
                quaint.damage = int.Parse(textBox13.Text);
                quaint.firerate = int.Parse(textBox6.Text);
                quaint.nombre = int.Parse(textBox3.Text);
                quaint.seconde = seconde;
                quaint.speed = int.Parse(textBox2.Text);
                quaint.trajectory = (string)comboBox4.SelectedItem;
                quaint.vie = int.Parse(textBox1.Text);

                quaint.bullet_Speed = int.Parse(textBox15.Text);

                if (type == "IA_V")
                {
                    quaint.X = savefile.ia_viseur[spawn].X;
                    quaint.Y = savefile.ia_viseur[spawn].Y;
                    savefile.ia_viseur[spawn] = quaint;
                    manage_V.remove_all();
                    for (int i = 0; i < savefile.ia_viseur.Count; ++i)
                        manage_V.Add(savefile.ia_viseur[i], i);
                }
                else if (type == "IA_T")
                {
                    quaint.X = savefile.ia_tireur[spawn].X;
                    quaint.Y = savefile.ia_tireur[spawn].Y;
                    savefile.ia_tireur[spawn] = quaint;
                    manage_T.remove_all();
                    for (int i = 0; i < savefile.ia_tireur.Count; ++i)
                        manage_T.Add(savefile.ia_tireur[i], i);
                }

            }
        }
 public void Add(couple couple)
 {
     ia_manage.Add(new Stalker(new Rectangle((int)(couple.X * window_W), -1 * _rectangle.Height, _rectangle.Width, _rectangle.Height), couple));
 }
        // tab2 kamikaze
        private void button3_Click(object sender, EventArgs e)
        {
            if (textBox4.BackColor == System.Drawing.Color.Green &&
                textBox5.BackColor == System.Drawing.Color.Green &&
                textBox12.BackColor == System.Drawing.Color.Green)
            {
                if (spawn == -1)
                {
                    couple couple = new couple();
                    couple.X = openX;
                    couple.Y = openY;
                    couple.seconde = seconde;
                    couple.damage = int.Parse(textBox12.Text);
                    couple.speed = int.Parse(textBox5.Text);
                    couple.vie = int.Parse(textBox4.Text);
                    savefile.ia_Kamikaze.Add(couple);
                    manage_k.Add(couple, manage_k.Ia_manage.Count);
                    this.hidou();
                }
                else
                {
                    modif(spawn, ia_type);
                    this.hidou();
                }

            }
        }
 public void Add(couple couple, int spawn)
 {
     ia_manage.Add(new Stalker(new Rectangle((int)(couple.X * window_W), (int)(couple.Y * window_H), _rectangle.Width, _rectangle.Height), couple, spawn));
 }