Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Monster  mon1 = new Monster();
            Villager v2   = new Villager();

            v2.Injured(mon1.Attack());
            MessageBox.Show("" + v2.GetHP());
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Villager v1 = new Villager();

            MessageBox.Show("" + v1.GetHP());
        }