Exemplo n.º 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++;
     }
 }
Exemplo n.º 2
0
 public override void Attack(HerroTemplate otherHerro)
 {
     GenerateAttack(MinDamage, MaxDamage);
     base.Attack(otherHerro);
 }
Exemplo n.º 3
0
 public virtual void Attack(HerroTemplate otherHerro)
 {
     otherHerro.GetDamage(Damage);
 }