示例#1
0
//about pictureBox
//add pictureBox to mainForm
        public void addPictureBoxTo(BattleForm mainForm)
        {
            img.Left = value - leftFix;
            HP.fixPositionLeft(value - leftFix);

            this.mainForm = mainForm;
            mainForm.Controls.Add(HP.getBarPictureBox());
        }
示例#2
0
        public Warriors(Point field, BattleForm mainForm, bool isReverse = false)
        {
            this.Lose     = false;
            this.mainForm = mainForm;
            this.Reverse  = isReverse;
            this.baseLine = field;
            this.group    = new List <Warrior>();

            this.rescueLine = baseLine;
        }
示例#3
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (level - Program.player.level <= 5)
     {
         Program.AI.set(level);
         BattleForm tmp = new BattleForm();
         this.Hide();
         tmp.Show();
     }
     else
     {
         message.Enqueue("你的等級不夠");
     }
     showMessage();
 }