Ejemplo n.º 1
0
 // Returns true if one of the ships was hit and false if none of the ships was hit
 public virtual bool IsHit(Coordinate point)
 {
     if (_carrier.IsHit(point) || _battleship.IsHit(point) ||
         _destroyer.IsHit(point) || _submarine.IsHit(point) ||
         _assaultShip.IsHit(point))
     {
         return(true);
     }
     return(false);
 }