00001 00002 #include "NG_NetworkEventManager.h" 00003 #include "NG_NetworkDeviceInterface.h" 00004 #include "NG_NetworkMessage.h" 00005 00006 00007 NG_NetworkEventManager::NG_NetworkEventManager(class SCA_LogicManager* logicmgr,NG_NetworkDeviceInterface* nic) 00008 : m_logicmgr(logicmgr), 00009 m_networkdevice(nic), 00010 SCA_EventManager(NETWORK_EVENTMGR) 00011 { 00012 00013 } 00014 00015 NG_NetworkEventManager::~NG_NetworkEventManager () 00016 { 00017 00018 } 00019 00020 00021 void NG_NetworkEventManager::NextFrame(double curtime,double deltatime) 00022 { 00023 00024 // each frame, the logicmanager will call the network eventmanager to look for network events, 00025 // and process it's 'network' sensors 00026 00027 // from network device interface, get the current queue 00028 00029 // process queue 00030 00031 // build a list of triggerer sensors: message sensors and object sensors 00032 00033 GEN_String version = m_networkdevice->GetNetworkVersion(); 00034 00035 NG_NetworkMessage msg; 00036 00037 do { 00038 00039 msg = m_networkdevice->RetrieveNetworkMessage(); 00040 00041 } while (!msg.IsEmpty()); 00042 00043 00044 } 00045 00046 void NG_NetworkEventManager::RegisterSensor(class SCA_ISensor* sensor) 00047 { 00048 m_sensors.push_back(sensor); 00049 } 00050 00051 void NG_NetworkEventManager::EndFrame() 00052 { 00053 00054 }