]> git.mxchange.org Git - flightgear.git/blob - src/Main/globals.cxx
Tweaking the FGInterface interface so we can move it towards a more consistant
[flightgear.git] / src / Main / globals.cxx
1 // globals.cxx -- Global state that needs to be shared among the sim modules
2 //
3 // Written by Curtis Olson, started July 2000.
4 //
5 // Copyright (C) 2000  Curtis L. Olson - curt@flightgear.org
6 //
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.
11 //
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.
16 //
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.
20 //
21 // $Id$
22
23
24 #include "globals.hxx"
25 #include "fg_props.hxx"
26
27
28 // global global :-)
29 FGGlobals *globals;
30
31
32 // Constructor
33 FGGlobals::FGGlobals() :
34     freeze( false ),
35     warp( 0 ),
36     warp_delta( 0 )
37 {
38                                 // TODO: move to a proper bind method
39 //   fgTie("/sim/freeze", &freeze);
40 //   fgTie("/sim/warp", &warp);
41 //   fgTie("/sim/warp-delta", &warp_delta);
42 }
43
44
45 // Destructor
46 FGGlobals::~FGGlobals() 
47 {
48                                 // TODO: move to a proper unbind method
49 //   fgUntie("/sim/freeze");
50 //   fgUntie("/sim/warp");
51 //   fgUntie("/sim/warp-delta");
52 }
53