1 // system_mgr.cxx - manage aircraft systems.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain and comes with no warranty.
7 #include "system_mgr.hxx"
8 #include "Vacuum/vacuum.hxx"
11 FGSystemMgr::FGSystemMgr ()
16 FGSystemMgr::~FGSystemMgr ()
18 for (unsigned int i = 0; i < _systems.size(); i++) {
27 // TODO: replace with XML configuration
28 _systems.push_back(new VacuumSystem);
30 // Initialize the individual systems
31 for (unsigned int i = 0; i < _systems.size(); i++)
42 FGSystemMgr::unbind ()
48 FGSystemMgr::update (double dt)
50 for (unsigned int i = 0; i < _systems.size(); i++)
51 _systems[i]->update(dt);
54 // end of system_manager.cxx