]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/system_mgr.cxx
Moved random ground cover object management code (userdata.[ch]xx) over
[flightgear.git] / src / Systems / system_mgr.cxx
index f30f88f711941eccea1f851d6c2e943e9ac58f60..bdf525f1411081ff4e03a27901f4fc30618ba726 100644 (file)
@@ -6,53 +6,22 @@
 
 #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-l", new VacuumSystem(0) );
+    set_subsystem( "vacuum-r", new VacuumSystem(1) );
 }
 
 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