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

SCA_LogicManager Class Reference

This manager handles sensor, controllers and actuators. More...

#include <SCA_LogicManager.h>

List of all members.

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_EventManagerFindEventManager (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 CValueGetGameObjectByName (const CCString& gameobjname)


Detailed Description

This manager handles sensor, controllers and actuators.

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.


Constructor & Destructor Documentation

SCA_LogicManager::SCA_LogicManager ( ) [inline]
 

Definition at line 57 of file SCA_LogicManager.h.

SCA_LogicManager::~SCA_LogicManager ( ) [virtual]
 

Definition at line 18 of file SCA_LogicManager.cpp.


Member Function Documentation

void SCA_LogicManager::AddActivatedSensor ( SCA_ISensor * sensor )
 

Definition at line 154 of file SCA_LogicManager.cpp.

void SCA_LogicManager::AddActiveActuator ( SCA_IActuator * actua,
class CValue * event )
 

Definition at line 166 of file SCA_LogicManager.cpp.

Referenced by SCA_ORController::Trigger(), SCA_ExpressionController::Trigger(), and SCA_ANDController::Trigger().

void SCA_LogicManager::BeginFrame ( double curtime,
double deltatime )
 

Definition at line 70 of file SCA_LogicManager.cpp.

Referenced by KX_Scene::LogicBeginFrame(), ExampleSystem::MainLoopCallback(), and ExampleEngine::MainLoopCallback().

void SCA_LogicManager::EndFrame ( )
 

Definition at line 137 of file SCA_LogicManager.cpp.

Referenced by KX_Scene::LogicEndFrame(), ExampleSystem::MainLoopCallback(), and ExampleEngine::MainLoopCallback().

SCA_EventManager * SCA_LogicManager::FindEventManager ( int eventmgrtype )
 

Definition at line 176 of file SCA_LogicManager.cpp.

Referenced by BL_ConvertSensors().

class CValue * SCA_LogicManager::GetGameObjectByName ( const CCString & gameobjname ) [inline]
 

Definition at line 98 of file SCA_LogicManager.h.

void * SCA_LogicManager::GetMeshByName ( const CCString & meshname ) [inline]
 

Definition at line 84 of file SCA_LogicManager.h.

void SCA_LogicManager::RegisterEventManager ( SCA_EventManager * eventmgr ) [inline]
 

Definition at line 60 of file SCA_LogicManager.h.

Referenced by CreateSampleLogic(), and main().

void SCA_LogicManager::RegisterGameObjectName ( const CCString & gameobjname,
CValue * gameobj ) [inline]
 

Definition at line 93 of file SCA_LogicManager.h.

Referenced by BL_ConvertBlenderObjects().

void SCA_LogicManager::RegisterMeshName ( const CCString & meshname,
void * mesh ) [inline]
 

Definition at line 79 of file SCA_LogicManager.h.

Referenced by BL_ConvertBlenderObjects().

void SCA_LogicManager::RegisterToActuator ( SCA_IController * controller,
class SCA_IActuator * actua )
 

Definition at line 63 of file SCA_LogicManager.cpp.

Referenced by BL_ConvertControllers(), CreateSampleLogic(), KX_Scene::ReplicateLogic(), and main().

void SCA_LogicManager::RegisterToSensor ( SCA_IController * controller,
class SCA_ISensor * sensor )
 

Definition at line 57 of file SCA_LogicManager.cpp.

Referenced by BL_ConvertSensors(), CreateSampleLogic(), KX_Scene::ReplicateLogic(), and main().

void SCA_LogicManager::RemoveActuator ( SCA_ISensor * sensor )
 

void SCA_LogicManager::RemoveController ( SCA_ISensor * sensor )
 

void SCA_LogicManager::RemoveSensor ( SCA_ISensor * sensor )
 

remove Logic Bricks from the running logicmanager.

Definition at line 47 of file SCA_LogicManager.cpp.

Referenced by KX_Scene::NewRemoveObject().

void SCA_LogicManager::UpdateFrame ( double curtime,
double deltatime )
 

Definition at line 110 of file SCA_LogicManager.cpp.

Referenced by KX_Scene::LogicUpdateFrame(), ExampleSystem::MainLoopCallback(), and ExampleEngine::MainLoopCallback().


The documentation for this class was generated from the following files:
Generated at Thu Feb 1 13:03:55 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000