Пример #1
0
 public void TakeHit(Knight other)
 {
     PointsOfLife = (int)Math.Max(0, PointsOfLife - other.SwordDamage);
     Alive        = PointsOfLife > 0;
 }
Пример #2
0
 public void Hit(Knight other)
 {
     other.TakeHit(this);
 }