Esempio n. 1
0
File: Priest.cs Progetto: jechev/OOP
 public void Heal(Character target)
 {
     this.Mana -= 100;
     target.Health += 150;
 }
Esempio n. 2
0
 public abstract void Attack(Character target);
Esempio n. 3
0
File: Priest.cs Progetto: jechev/OOP
 public override void Attack(Character target)
 {
     this.Mana -= 100;
     target.Health -= this.Damage;
     this.Health += this.Damage/10;
 }
Esempio n. 4
0
 public override void Attack(Character target)
 {
     target.Health -= this.Damage;
 }