示例#1
0
文件: Priest.cs 项目: krasi070/OOP
 public void Heal(Character other)
 {
     this.Mana -= 100;
     other.Health += 150;
 }
示例#2
0
 public override void Attack(Character enemy)
 {
     this.Mana -= 100;
     enemy.Health -= this.Damage*2;
 }
示例#3
0
 public abstract void Attack(Character enemy);
示例#4
0
文件: Priest.cs 项目: krasi070/OOP
 public override void Attack(Character other)
 {
     this.Mana -= 100;
     other.Health -= this.Damage;
     this.Health += this.Damage / 10;
 }
示例#5
0
文件: Character.cs 项目: krasi070/OOP
 public abstract void Attack(Character other);
示例#6
0
 public override void Attack(Character enemy)
 {
     enemy.Health -= this.Damage;
 }
示例#7
0
 public void Heal(Character target)
 {
     this.Mana -= 100;
     target.Health += 150;
 }
示例#8
0
 public override void Attack(Character target)
 {
     this.Mana -= 100;
     target.Health -= this.Damage;
     this.Health += (int)(0.1*(double)this.Damage);
 }
示例#9
0
文件: Warrior.cs 项目: krasi070/OOP
 public override void Attack(Character other)
 {
     other.Health -= this.Damage;
 }