Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SCA_PropertyEventManager.cpp

Go to the documentation of this file.
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 }

Generated at Thu Feb 1 13:03:10 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000