예제 #1
0
 public abstract void Attack(Character target);
예제 #2
0
 public override void Attack(Character target)
 {
     target.Health -= this.Damage;
 }
예제 #3
0
 public override void Attack(Character target)
 {
     this.Mana -= 100;
     target.Health -= this.Damage;
     this.Health += (this.Damage * 10 / 100);
 }
예제 #4
0
 public void Heal(Character target)
 {
     this.Mana -= 100;
     target.Health += 150;
 }
예제 #5
0
파일: Mage.cs 프로젝트: ROSSFilipov/CSharp
 public override void Attack(Character target)
 {
     this.Mana -= 100;
     target.Health -= 2 * this.Damage;
 }