Exemplo n.º 1
0
        private void basicAttackButton_Click(object sender, EventArgs e)
        {
            BasicAttack atk = new BasicAttack();
            //and then add the new basic attack
            atk.SetAsDefault();
            atk.Prepare(monster);
            atk.Free = true;

            foreach (AbilityModifier a in monster.BasicAttack.Modifiers())
            {
                a.SetupParent(atk);
                atk.AddModifier(a);
            }

            monster.BasicAttack = atk;
            basicAttackButton.BackColor = Properties.Settings.Default.BackColour;
            basicAttackButton.ForeColor = Properties.Settings.Default.TextColour;
            this.UpdateData();
        }
Exemplo n.º 2
0
 public Monster()
 {
     //do anything that needs to be done to initialise the monster
     basicAttack = new NullAttack();
     basicAttack.Prepare(this);
 }