示例#1
0
 public Airplane Sale(Airplane airplane)
 {
     Game.Player.Pay(airplane.PriceSale);
     Airplanes.Add(airplane);
     return(airplane);
 }
示例#2
0
 public Airplane Buy(Airplane airplane)
 {
     Game.Player.Spent(airplane.PriceBuy);
     Airplanes.Remove(airplane);
     return(airplane);
 }
示例#3
0
 public void ReturnRent(Airplane airplane)
 {
     airplane.RentEnd = null;
     Airplanes.Add(airplane);
     _rent.Remove(airplane);
 }
示例#4
0
 public void ScheduleFlight(Flight flight, Airplane airplane, DateTime time)
 {
     Schedule.Add(flight, airplane, time);
 }