public void CompleteFlight(Flight flight)
 {
     Pay(flight.PriceFlight);
     Flights.Remove(flight);
     Schedule.CompleteFlight(flight);
 }
 public void RemoveFromSchedule(Flight flight)
 {
     Schedule.Remove(flight);
 }
 public void ScheduleFlight(Flight flight, Airplane airplane, DateTime time)
 {
     Schedule.Add(flight, airplane, time);
 }
        public void TakeFromFlightBoard(Flight flight)
        {
            Flight taken = Game.FlightBoard.TakeFlight(flight);

            Flights.Add(taken);
        }
Exemple #5
0
 public bool IsAvailableForFlight(Flight flight)
 {
     return((DistanceFly >= flight.Distance) &&
            (flight.IsPassengerFlight ? (QuantitySeat >= flight.RequiredLoad) : (MaxLoad >= flight.RequiredLoad)));
 }
Exemple #6
0
 public bool CanFlyTo(Flight flight) => flight.DepartureCity == Location &&
 CanFlyTo(flight.ArrivalCity);