예제 #1
0
 public void CheckVictoryORDeath(HerroTemplate other)
 {
     if (Helth <= 0)
     {
         Dead?.Invoke(this, new ResultBatle($"герой {Name} побежден"));
         countDeath++;
     }
     if (other.Helth <= 0)
     {
         Victory?.Invoke(this, new ResultBatle($"герой {Name} одержал победу"));
         countVictory++;
     }
 }
예제 #2
0
 public override void Attack(HerroTemplate otherHerro)
 {
     GenerateAttack(MinDamage, MaxDamage);
     base.Attack(otherHerro);
 }
예제 #3
0
 public virtual void Attack(HerroTemplate otherHerro)
 {
     otherHerro.GetDamage(Damage);
 }