Esempio n. 1
0
 public void Heal(Character other)
 {
     this.Mana -= 100;
     other.Health += 150;
 }
Esempio n. 2
0
 public override void Attack(Character enemy)
 {
     this.Mana -= 100;
     enemy.Health -= this.Damage*2;
 }
Esempio n. 3
0
 public abstract void Attack(Character enemy);
Esempio n. 4
0
 public override void Attack(Character other)
 {
     this.Mana -= 100;
     other.Health -= this.Damage;
     this.Health += this.Damage / 10;
 }
Esempio n. 5
0
 public abstract void Attack(Character other);
Esempio n. 6
0
 public override void Attack(Character enemy)
 {
     enemy.Health -= this.Damage;
 }
Esempio n. 7
0
 public void Heal(Character target)
 {
     this.Mana -= 100;
     target.Health += 150;
 }
Esempio n. 8
0
 public override void Attack(Character target)
 {
     this.Mana -= 100;
     target.Health -= this.Damage;
     this.Health += (int)(0.1*(double)this.Damage);
 }
Esempio n. 9
0
 public override void Attack(Character other)
 {
     other.Health -= this.Damage;
 }