示例#1
0
 public override void Attack(Character target)
 {
     target.Health -= this.Damage;
 }
示例#2
0
 public override void Attack(Character target)
 {
     this.Mana -= 100; //Spend 100 Mana
     target.Health -= 2 * this.Damage; // Attack with twice damage!
 }
示例#3
0
 public override void Attack(Character target)
 {
     this.Health += this.Damage / 10; // Heal himself 10% from the Damage!
     target.Health -= this.Damage;
 }
示例#4
0
 public void Heal(Character target)
 {
     this.Mana -= 100;
     target.Health += 150;
 }
示例#5
0
 public abstract void Attack(Character target);