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