示例#1
0
 private void buttonAttack_Click(object sender, EventArgs e)
 {
     this.buttonAttack.Enabled = !this.buttonAttack.Enabled;
     this.buttonDefend.Enabled = !this.buttonDefend.Enabled;
     penguin.Attack(orca);
     this.listBox1.Items.Add("You've attacked the orca! \n Current enemy's Hp = " + orca.Hitpoint);
     if (!orca.isAlive())
     {
         this.Close();
         Map.eData[orca.Rows, orca.Columns] = EntityFactory.CreateWay(new Point(orca.Rows, orca.Columns));
     }
 }