00001 #include "SCA_ISensor.h" 00002 #include "SCA_PropertyEventManager.h" 00003 00004 00005 00006 SCA_PropertyEventManager::SCA_PropertyEventManager(class SCA_LogicManager* logicmgr) 00007 : SCA_EventManager(PROPERTY_EVENTMGR), 00008 m_logicmgr(logicmgr) 00009 { 00010 00011 } 00012 00013 SCA_PropertyEventManager::~SCA_PropertyEventManager() 00014 { 00015 00016 } 00017 void SCA_PropertyEventManager::RegisterSensor(SCA_ISensor* sensor) 00018 { 00019 m_sensors.push_back(sensor); 00020 } 00021 00022 00023 void SCA_PropertyEventManager::NextFrame(double curtime,double deltatime) 00024 { 00025 // check for changed properties 00026 for (vector<SCA_ISensor*>::const_iterator it = m_sensors.begin();!(it==m_sensors.end());it++) 00027 { 00028 (*it)->Activate(m_logicmgr,NULL); 00029 } 00030 }