/// <summary> /// board passengers /// </summary> /// <param name="addingAmount">count of peoples in generating queue</param> public override List <Passenger.Passenger> BoardPassengers(int addingAmount) { List <Passenger.Passenger> busQueue = new BusQueue(addingAmount).GeneratePassengers(new BusPassengersBuilder()); Passengers.AddRange(BoardBus.Instance().BoardPassenger(Passengers.Count, ref busQueue)); return(busQueue); }
protected override Driver DriverInstance(string name) { return(Driver ??= BoardBus.Instance().BoardDriver(name)); }