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 "electrical.hxx"
12 FGSystemMgr::FGSystemMgr ()
17 FGSystemMgr::~FGSystemMgr ()
19 for (unsigned int i = 0; i < _systems.size(); i++) {
28 // TODO: replace with XML configuration
29 _systems.push_back(new ElectricalSystem);
30 _systems.push_back(new VacuumSystem);
32 // Initialize the individual systems
33 for (unsigned int i = 0; i < _systems.size(); i++)
44 FGSystemMgr::unbind ()
50 FGSystemMgr::update (double dt)
52 for (unsigned int i = 0; i < _systems.size(); i++)
53 _systems[i]->update(dt);
56 // end of system_manager.cxx