]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/system_mgr.cxx
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / Systems / system_mgr.cxx
index f30f88f711941eccea1f851d6c2e943e9ac58f60..cb7406f98a4e952a36746d92d681cd12d4f98e13 100644 (file)
@@ -6,53 +6,21 @@
 
 #include "system_mgr.hxx"
 #include "electrical.hxx"
+#include "pitot.hxx"
 #include "static.hxx"
 #include "vacuum.hxx"
 
 
 FGSystemMgr::FGSystemMgr ()
 {
-    // NO-OP
+    set_subsystem("electrical", new FGElectricalSystem);
+    set_subsystem("pitot", new PitotSystem);
+    set_subsystem("static", new StaticSystem);
+    set_subsystem("vacuum", new VacuumSystem);
 }
 
 FGSystemMgr::~FGSystemMgr ()
 {
-    for (unsigned int i = 0; i < _systems.size(); i++) {
-        delete _systems[i];
-        _systems[i] = 0;
-    }
-}
-
-void
-FGSystemMgr::init ()
-{
-                                // TODO: replace with XML configuration
-    _systems.push_back(new FGElectricalSystem);
-    _systems.push_back(new StaticSystem);
-    _systems.push_back(new VacuumSystem);
-
-                                // Initialize the individual systems
-    for (unsigned int i = 0; i < _systems.size(); i++)
-        _systems[i]->init();
-}
-
-void
-FGSystemMgr::bind ()
-{
-    // NO-OP
-}
-
-void
-FGSystemMgr::unbind ()
-{
-    // NO-OP
-}
-
-void
-FGSystemMgr::update (double dt)
-{
-    for (unsigned int i = 0; i < _systems.size(); i++)
-        _systems[i]->update(dt);
 }
 
 // end of system_manager.cxx