]> git.mxchange.org Git - flightgear.git/blob - src/Main/fgfs.cxx
A couple ADF needle direction tweaks.
[flightgear.git] / src / Main / fgfs.cxx
1 #include "fgfs.hxx"
2
3 #include <simgear/debug/logstream.hxx>
4
5 #include "globals.hxx"
6 #include "fg_props.hxx"
7
8
9 \f
10 ////////////////////////////////////////////////////////////////////////
11 // Implementation of FGSubsystem
12 ////////////////////////////////////////////////////////////////////////
13
14
15 FGSubsystem::FGSubsystem ()
16   : _suspended(false)
17 {
18 }
19
20 FGSubsystem::~FGSubsystem ()
21 {
22 }
23
24 void
25 FGSubsystem::suspend ()
26 {
27   _suspended = true;
28 }
29
30 void
31 FGSubsystem::suspend (bool suspended)
32 {
33   _suspended = suspended;
34 }
35
36 void
37 FGSubsystem::resume ()
38 {
39   _suspended = false;
40 }
41
42 bool
43 FGSubsystem::is_suspended () const
44 {
45   if (!_freeze_master_node.valid())
46     _freeze_master_node = fgGetNode("/sim/freeze/master", true);
47   return _suspended || _freeze_master_node->getBoolValue();
48 }
49
50 // end of fgfs.cxx