00001 00007 00008 #include "SCA_AlwaysEventManager.h" 00009 #include "SCA_LogicManager.h" 00010 #include <vector> 00011 #include "SCA_ISensor.h" 00012 using namespace std; 00013 00014 void SCA_AlwaysEventManager::NextFrame(double curtime,double deltatime) 00015 { 00016 for (vector<class SCA_ISensor*>::const_iterator i= m_sensors.begin();!(i==m_sensors.end());i++) 00017 { 00018 00019 SCA_ISensor* sensor = *i; 00020 sensor->Activate(m_logicmgr, NULL); 00021 } 00022 } 00023 00024 void SCA_AlwaysEventManager::RegisterSensor(SCA_ISensor* sensor) 00025 { 00026 m_sensors.push_back(sensor); 00027 };