public CheckRepairing ( |
||
fleet | ||
return | bool |
public bool CheckRepairing(Fleet fleet)
{
var repairingShipIds = this.Docks.Values.Where(x => x.Ship != null).Select(x => x.Ship.Id).ToArray();
return fleet.Ships.Any(x => repairingShipIds.Any(id => id == x.Id));
}
Repairyard::CheckRepairing ( int shipId ) : bool |