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"
14 FGSystemMgr::FGSystemMgr ()
19 FGSystemMgr::~FGSystemMgr ()
21 for (unsigned int i = 0; i < _systems.size(); i++) {
30 // TODO: replace with XML configuration
31 _systems.push_back(new FGElectricalSystem);
32 _systems.push_back(new PitotSystem);
33 _systems.push_back(new StaticSystem);
34 _systems.push_back(new VacuumSystem);
36 // Initialize the individual systems
37 for (unsigned int i = 0; i < _systems.size(); i++)
48 FGSystemMgr::unbind ()
54 FGSystemMgr::update (double dt)
56 for (unsigned int i = 0; i < _systems.size(); i++)
57 _systems[i]->update(dt);
60 // end of system_manager.cxx