示例#1
0
文件: Ship.cs 项目: jauggy/Boardgames
 private bool IsHit(DamageDice dice)
 {
     if (dice.Value == 1)
         return false;
     else if (dice.Value == 6 || dice.AdjustedValue - this.Shield >= 6)
         return true;
     else
         return false;
 }
示例#2
0
文件: Ship.cs 项目: jauggy/Boardgames
 public bool AssignDamage(DamageDice dice)
 {
     if(Health>0 && IsHit(dice))
     {
         dice.IsUsed = true;
         AssignedDamage++;
         return true;
     }
     else
         return false;
 }