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"
13 FGSystemMgr::FGSystemMgr ()
18 FGSystemMgr::~FGSystemMgr ()
20 for (unsigned int i = 0; i < _systems.size(); i++) {
29 // TODO: replace with XML configuration
30 _systems.push_back(new FGElectricalSystem);
31 _systems.push_back(new StaticSystem);
32 _systems.push_back(new VacuumSystem);
34 // Initialize the individual systems
35 for (unsigned int i = 0; i < _systems.size(); i++)
46 FGSystemMgr::unbind ()
52 FGSystemMgr::update (double dt)
54 for (unsigned int i = 0; i < _systems.size(); i++)
55 _systems[i]->update(dt);
58 // end of system_manager.cxx