]> git.mxchange.org Git - flightgear.git/blob - src/Airports/parking.cxx
- Added ultra-light traffic is now a separate traffic class that can have its
[flightgear.git] / src / Airports / parking.cxx
1 // parking.cxx - Implementation of a class to manage aircraft parking in
2 // FlightGear. This code is intended to be used by AI code and
3 // initial user-startup location selection.
4 //
5 // Written by Durk Talsma, started December 2004.
6 //
7 // Copyright (C) 2004 Durk Talsma.
8 //
9 // This program is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU General Public License as
11 // published by the Free Software Foundation; either version 2 of the
12 // License, or (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful, but
15 // WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 // General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
22 //
23 // $Id$
24
25 #ifdef HAVE_CONFIG_H
26 #  include <config.h>
27 #endif
28
29 //#include <algorithm>
30
31 #include <simgear/compiler.h>
32
33 //#include <plib/sg.h>
34 //#include <plib/ul.h>
35
36 //#include <Environment/environment_mgr.hxx>
37 //#include <Environment/environment.hxx>
38 //#include <simgear/misc/sg_path.hxx>
39 //#include <simgear/props/props.hxx>
40 //#include <simgear/structure/subsystem_mgr.hxx>
41 //#include <simgear/debug/logstream.hxx>
42 //#include <Main/globals.hxx>
43 //#include <Main/fg_props.hxx>
44 //#include <Airports/runways.hxx>
45
46 #include STL_STRING
47
48 #include "parking.hxx"
49
50 /*********************************************************************************
51  * FGParking
52  ********************************************************************************/
53 FGParking::FGParking(double lat,
54                      double lon,
55                      double hdg,
56                      double rad,
57                      int idx,
58                      const string &name,
59                      const string &tpe,
60                      const string &codes)
61   : FGTaxiNode(lat,lon,idx)
62 {
63   heading      = hdg;
64   parkingName  = name;
65   type         = tpe;
66   airlineCodes = codes;
67 }