2001-01-05 17:37:59 +00:00
|
|
|
|
#include "fgfs.hxx"
|
|
|
|
|
|
|
|
|
|
#include <simgear/debug/logstream.hxx>
|
|
|
|
|
|
|
|
|
|
#include "globals.hxx"
|
2002-05-11 16:28:50 +00:00
|
|
|
|
#include "fg_props.hxx"
|
2001-01-05 17:37:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Implementation of FGSubsystem
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
2002-05-11 16:28:50 +00:00
|
|
|
|
FGSubsystem::FGSubsystem ()
|
|
|
|
|
: _suspended(false)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2001-01-05 17:37:59 +00:00
|
|
|
|
FGSubsystem::~FGSubsystem ()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2002-05-11 16:28:50 +00:00
|
|
|
|
void
|
|
|
|
|
FGSubsystem::suspend ()
|
|
|
|
|
{
|
|
|
|
|
_suspended = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
FGSubsystem::suspend (bool suspended)
|
|
|
|
|
{
|
|
|
|
|
_suspended = suspended;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
FGSubsystem::resume ()
|
|
|
|
|
{
|
|
|
|
|
_suspended = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
FGSubsystem::is_suspended () const
|
|
|
|
|
{
|
|
|
|
|
if (!_freeze_master_node.valid())
|
|
|
|
|
_freeze_master_node = fgGetNode("/sim/freeze/master", true);
|
|
|
|
|
return _suspended || _freeze_master_node->getBoolValue();
|
|
|
|
|
}
|
2001-01-05 17:37:59 +00:00
|
|
|
|
|
|
|
|
|
// end of fgfs.cxx
|