1 // FGTower - a class to provide tower control at towered airports.
3 // Written by David Luff, started March 2002.
5 // Copyright (C) 2002 David C. Luff - david.luff@nottingham.ac.uk
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include <Main/globals.hxx>
24 #include "ATCdisplay.hxx"
32 void FGTower::Init() {
36 void FGTower::Update() {
37 // Each time step, what do we need to do?
38 // We need to go through the list of outstanding requests and acknowedgements
39 // and process at least one of them.
40 // We need to go through the list of planes under our control and check if
41 // any need to be addressed.
42 // We need to check for planes not under our control coming within our
43 // control area and address if necessary.
45 // Hardwired for testing
48 //cout << "Registering message in tower.cxx ****************************\n";
49 //globals->get_ATC_display()->RegisterSingleMessage((string)"Cessna eight-two-zero Cleared for takeoff", 2);