Blender V2.61 - r43446
|
#include <SCA_EventManager.h>
Public Types | |
enum | EVENT_MANAGER_TYPE { KEYBOARD_EVENTMGR = 0, MOUSE_EVENTMGR, ALWAYS_EVENTMGR, TOUCH_EVENTMGR, PROPERTY_EVENTMGR, TIME_EVENTMGR, RANDOM_EVENTMGR, RAY_EVENTMGR, NETWORK_EVENTMGR, JOY_EVENTMGR, ACTUATOR_EVENTMGR, BASIC_EVENTMGR } |
Public Member Functions | |
SCA_EventManager (SCA_LogicManager *logicmgr, EVENT_MANAGER_TYPE mgrtype) | |
virtual | ~SCA_EventManager () |
virtual void | RemoveSensor (class SCA_ISensor *sensor) |
virtual void | NextFrame (double curtime, double fixedtime) |
virtual void | NextFrame () |
virtual void | UpdateFrame () |
virtual void | EndFrame () |
virtual void | RegisterSensor (class SCA_ISensor *sensor) |
int | GetType () |
void | Replace_LogicManager (SCA_LogicManager *logicmgr) |
virtual void | Replace_PhysicsScene (class PHY_IPhysicsEnvironment *env) |
Protected Attributes | |
class SCA_LogicManager * | m_logicmgr |
SG_DList | m_sensors |
EVENT_MANAGER_TYPE | m_mgrtype |
Definition at line 41 of file SCA_EventManager.h.
KEYBOARD_EVENTMGR | |
MOUSE_EVENTMGR | |
ALWAYS_EVENTMGR | |
TOUCH_EVENTMGR | |
PROPERTY_EVENTMGR | |
TIME_EVENTMGR | |
RANDOM_EVENTMGR | |
RAY_EVENTMGR | |
NETWORK_EVENTMGR | |
JOY_EVENTMGR | |
ACTUATOR_EVENTMGR | |
BASIC_EVENTMGR |
Definition at line 51 of file SCA_EventManager.h.
SCA_EventManager::SCA_EventManager | ( | SCA_LogicManager * | logicmgr, |
EVENT_MANAGER_TYPE | mgrtype | ||
) |
Definition at line 38 of file SCA_EventManager.cpp.
SCA_EventManager::~SCA_EventManager | ( | ) | [virtual] |
Definition at line 46 of file SCA_EventManager.cpp.
References assert, SG_DList::Empty(), and m_sensors.
void SCA_EventManager::EndFrame | ( | ) | [virtual] |
Reimplemented in KX_TouchEventManager, and KX_NetworkEventManager.
Definition at line 72 of file SCA_EventManager.cpp.
int SCA_EventManager::GetType | ( | ) |
Definition at line 80 of file SCA_EventManager.cpp.
References m_mgrtype.
Referenced by SCA_LogicManager::FindEventManager(), and SCA_ISensor::Replace_EventManager().
void SCA_EventManager::NextFrame | ( | double | curtime, |
double | fixedtime | ||
) | [virtual] |
Reimplemented in SCA_JoystickManager, and SCA_TimeEventManager.
Definition at line 62 of file SCA_EventManager.cpp.
References NextFrame().
void SCA_EventManager::NextFrame | ( | ) | [virtual] |
Reimplemented in SCA_ActuatorEventManager, SCA_AlwaysEventManager, SCA_BasicEventManager, SCA_KeyboardManager, SCA_MouseManager, SCA_PropertyEventManager, SCA_RandomEventManager, KX_RayEventManager, KX_TouchEventManager, and KX_NetworkEventManager.
Definition at line 67 of file SCA_EventManager.cpp.
References assert.
Referenced by NextFrame().
void SCA_EventManager::RegisterSensor | ( | class SCA_ISensor * | sensor | ) | [virtual] |
Reimplemented in SCA_TimeEventManager, and KX_TouchEventManager.
Definition at line 52 of file SCA_EventManager.cpp.
References SG_DList::AddBack(), and m_sensors.
Referenced by SCA_ISensor::RegisterToManager(), and SCA_ISensor::Replace_EventManager().
void SCA_EventManager::RemoveSensor | ( | class SCA_ISensor * | sensor | ) | [virtual] |
Reimplemented in SCA_TimeEventManager, and KX_TouchEventManager.
Definition at line 57 of file SCA_EventManager.cpp.
References SG_DList::Delink().
Referenced by SCA_ISensor::Replace_EventManager(), and SCA_ISensor::UnregisterToManager().
void SCA_EventManager::Replace_LogicManager | ( | SCA_LogicManager * | logicmgr | ) | [inline] |
Definition at line 79 of file SCA_EventManager.h.
References m_logicmgr.
Referenced by KX_Scene::MergeScene().
virtual void SCA_EventManager::Replace_PhysicsScene | ( | class PHY_IPhysicsEnvironment * | env | ) | [inline, virtual] |
Reimplemented in KX_TouchEventManager.
Definition at line 80 of file SCA_EventManager.h.
void SCA_EventManager::UpdateFrame | ( | ) | [virtual] |
Reimplemented in SCA_ActuatorEventManager.
Definition at line 76 of file SCA_EventManager.cpp.
class SCA_LogicManager* SCA_EventManager::m_logicmgr [protected] |
Definition at line 44 of file SCA_EventManager.h.
Referenced by KX_TouchEventManager::GetLogicManager(), KX_NetworkEventManager::GetLogicManager(), SCA_MouseManager::NextFrame(), SCA_AlwaysEventManager::NextFrame(), SCA_JoystickManager::NextFrame(), SCA_BasicEventManager::NextFrame(), SCA_PropertyEventManager::NextFrame(), KX_TouchEventManager::NextFrame(), SCA_KeyboardManager::NextFrame(), SCA_RandomEventManager::NextFrame(), KX_NetworkEventManager::NextFrame(), SCA_ActuatorEventManager::NextFrame(), and Replace_LogicManager().
EVENT_MANAGER_TYPE SCA_EventManager::m_mgrtype [protected] |
Definition at line 83 of file SCA_EventManager.h.
Referenced by GetType().
SG_DList SCA_EventManager::m_sensors [protected] |
Definition at line 48 of file SCA_EventManager.h.
Referenced by KX_TouchEventManager::EndFrame(), SCA_MouseManager::NextFrame(), SCA_AlwaysEventManager::NextFrame(), SCA_JoystickManager::NextFrame(), SCA_BasicEventManager::NextFrame(), SCA_PropertyEventManager::NextFrame(), KX_TouchEventManager::NextFrame(), SCA_KeyboardManager::NextFrame(), SCA_RandomEventManager::NextFrame(), KX_NetworkEventManager::NextFrame(), SCA_ActuatorEventManager::NextFrame(), KX_TouchEventManager::RegisterSensor(), RegisterSensor(), SCA_ActuatorEventManager::UpdateFrame(), and ~SCA_EventManager().