Esempio n. 1
0
 public void TakeHit(Knight other)
 {
     PointsOfLife = (int)Math.Max(0, PointsOfLife - other.SwordDamage);
     Alive        = PointsOfLife > 0;
 }
Esempio n. 2
0
 public void Hit(Knight other)
 {
     other.TakeHit(this);
 }