public bool DamagePoint(Point point) { if (!GetOwnNeededSpace().Contains(point)) { return(false); } var res = DamagedPoint.Add(point); if (res) { if (DamagedPoint.Count == GetOwnNeededSpace().AllPoints().Count) { this.Status = ShipStatus.Dead; } else { this.Status = ShipStatus.Ranen; } } return(res); }
public bool IsDamaged(Point point) { return(DamagedPoint.Contains(point)); }