示例#1
0
文件: Knight.cs 项目: cdie/PPPGames
 public void TakeHit(Knight other)
 {
     PointsOfLife = (int)Math.Max(0, PointsOfLife - other.SwordDamage);
     Alive        = PointsOfLife > 0;
 }
示例#2
0
文件: Knight.cs 项目: cdie/PPPGames
 public void Hit(Knight other)
 {
     other.TakeHit(this);
 }