public void land() { if (atcMediator.isLandingOk()) { Console.WriteLine("Successfully Landed."); atcMediator.setLandingStatus(true); } else { Console.WriteLine("Waiting for landing."); } }
public void land() { Console.WriteLine("Landing permission granted."); atcMediator.setLandingStatus(true); }
public Runway(IATCMediator atcMediator) { this.atcMediator = atcMediator; atcMediator.setLandingStatus(true); }