#include <SCA_LogicManager.h>
Public Methods | |
SCA_LogicManager () | |
virtual | ~SCA_LogicManager () |
void | RegisterEventManager (SCA_EventManager* eventmgr) |
void | RegisterToSensor (SCA_IController* controller,class SCA_ISensor* sensor) |
void | RegisterToActuator (SCA_IController* controller,class SCA_IActuator* actuator) |
void | BeginFrame (double curtime,double deltatime) |
void | UpdateFrame (double curtime,double deltatime) |
void | EndFrame () |
void | AddActivatedSensor (SCA_ISensor* sensor) |
void | AddActiveActuator (SCA_IActuator* sensor,class CValue* event) |
SCA_EventManager* | FindEventManager (int eventmgrtype) |
void | RemoveSensor (SCA_ISensor* sensor) |
remove Logic Bricks from the running logicmanager. More... | |
void | RemoveController (SCA_ISensor* sensor) |
void | RemoveActuator (SCA_ISensor* sensor) |
void | RegisterMeshName (const CCString& meshname,void* mesh) |
void* | GetMeshByName (const CCString& meshname) |
void | RegisterGameObjectName (const CCString& gameobjname,CValue* gameobj) |
class CValue* | GetGameObjectByName (const CCString& gameobjname) |
logic executes each frame the following way: find triggering sensors build list of controllers that are triggered by these triggering sensors process all triggered controllers during this phase actuators can be added to the active actuator list process all active actuators clear triggering sensors clear triggered controllers (actuators may be active during a longer timeframe)
Definition at line 40 of file SCA_LogicManager.h.
|
Definition at line 57 of file SCA_LogicManager.h. |
|
Definition at line 18 of file SCA_LogicManager.cpp. |
|
Definition at line 154 of file SCA_LogicManager.cpp. |
|
Definition at line 166 of file SCA_LogicManager.cpp. Referenced by SCA_ORController::Trigger(), SCA_ExpressionController::Trigger(), and SCA_ANDController::Trigger(). |
|
Definition at line 70 of file SCA_LogicManager.cpp. Referenced by KX_Scene::LogicBeginFrame(), ExampleSystem::MainLoopCallback(), and ExampleEngine::MainLoopCallback(). |
|
Definition at line 137 of file SCA_LogicManager.cpp. Referenced by KX_Scene::LogicEndFrame(), ExampleSystem::MainLoopCallback(), and ExampleEngine::MainLoopCallback(). |
|
Definition at line 176 of file SCA_LogicManager.cpp. Referenced by BL_ConvertSensors(). |
|
Definition at line 98 of file SCA_LogicManager.h. |
|
Definition at line 84 of file SCA_LogicManager.h. |
|
Definition at line 60 of file SCA_LogicManager.h. Referenced by CreateSampleLogic(), and main(). |
|
Definition at line 93 of file SCA_LogicManager.h. Referenced by BL_ConvertBlenderObjects(). |
|
Definition at line 79 of file SCA_LogicManager.h. Referenced by BL_ConvertBlenderObjects(). |
|
Definition at line 63 of file SCA_LogicManager.cpp. Referenced by BL_ConvertControllers(), CreateSampleLogic(), KX_Scene::ReplicateLogic(), and main(). |
|
Definition at line 57 of file SCA_LogicManager.cpp. Referenced by BL_ConvertSensors(), CreateSampleLogic(), KX_Scene::ReplicateLogic(), and main(). |
|
|
|
|
|
remove Logic Bricks from the running logicmanager.
Definition at line 47 of file SCA_LogicManager.cpp. Referenced by KX_Scene::NewRemoveObject(). |
|
Definition at line 110 of file SCA_LogicManager.cpp. Referenced by KX_Scene::LogicUpdateFrame(), ExampleSystem::MainLoopCallback(), and ExampleEngine::MainLoopCallback(). |