Exemple #1
0
 public new void IncreaseThrottle(int input)
 {
     base.IncreaseThrottle(input);
     Console.WriteLine("Rolling forward on the ground.");
     if (Velocity > 0)
     {
         Airplane.TransitionTo(new TakingOff(Airplane));
     }
 }
Exemple #2
0
 public new void IncreaseThrottle(int input)
 {
     base.IncreaseThrottle(input);
     if (Velocity == MaxVelocity)
     {
         Airplane.TransitionTo(new Airborne(Airplane));
         return;
     }
     Console.WriteLine("ALMOST THERE!");
 }
Exemple #3
0
 public new void DecreaseThrottle(int input)
 {
     base.DecreaseThrottle(input);
     if (Velocity == MinVelocity)
     {
         Airplane.TransitionTo(new Grounded(Airplane));
         return;
     }
     Console.WriteLine("Aborting takeoff?");
 }