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

SCA_PythonController Class Reference

#include <KX_PythonController.h>

Inheritance diagram for SCA_PythonController:

SCA_IController SCA_ILogicBrick CValue PyObjectPlus PyObject List of all members.

Public Methods

 SCA_PythonController (KX_GameObject* gameobj,PyTypeObject* T = &SCA_PythonController::Type)
virtual ~SCA_PythonController ()
virtual void Trigger (class SCA_LogicManager* logicmgr)
PyObjectPyGetActuator (PyObject* self, PyObject* args, PyObject* kwds)
PyObjectPyGetSensor (PyObject* self, PyObject* args, PyObject* kwds)
virtual PyObject_getattr (char *attr)
 SCA_PythonController (SCA_IObject* gameobj,PyTypeObject* T = &Type)
virtual ~SCA_PythonController ()
virtual CValueGetReplica ()
virtual void Trigger (class SCA_LogicManager* logicmgr)
void SetScriptText (const CCString& text)
void SetScriptName (const CCString& name)
void SetDictionary (PyObject* pythondictionary)
PyObjectPyGetActuators (PyObject* self, PyObject* args, PyObject* kwds)
PyObjectPyGetSensors (PyObject* self, PyObject* args, PyObject* kwds)
virtual PyObject_getattr (char *attr)
 KX_PYMETHOD_DOC (SCA_PythonController,GetSensor)
 KX_PYMETHOD (SCA_PythonController,SetScript)
 KX_PYMETHOD (SCA_PythonController,GetScript)

Static Public Methods

PyObjectsPyGetActuator (PyObject* self, PyObject* args, PyObject* kwds)
PyObjectsPyGetSensor (PyObject* self, PyObject* args, PyObject* kwds)
PyObjectsPyGetCurrentController (PyObject* self, PyObject* args, PyObject* kwds)
PyObjectsPyGetActuators (PyObject* self, PyObject* args, PyObject* kwds)
PyObjectsPyGetSensors (PyObject* self, PyObject* args, PyObject* kwds)
PyObjectsPyGetCurrentController (PyObject* self, PyObject* args, PyObject* kwds)
PyObjectsPyAddActiveActuator ( PyObject* self, PyObject* args, PyObject* kwds)

Static Public Attributes

SCA_PythonController* m_sCurrentController = NULL
 Execute Python scripts. More...

char* sPyGetActuator__doc__ = "GetActuator"
char* sPyGetSensor__doc__ = "GetSensor"
char* sPyGetCurrentController__doc__ = "GetCurrentController"
char* sPyGetActuators__doc__ = "getActuators"
char* sPyGetSensors__doc__ = "getSensors"
char* sPyAddActiveActuator__doc__ = "addActiveActuator(actuator,bool)"

Protected Attributes

CCString m_scriptText
CCString m_scriptName
PyObjectm_pythondictionary

Constructor & Destructor Documentation

SCA_PythonController::SCA_PythonController ( KX_GameObject * gameobj,
PyTypeObject * T = &SCA_PythonController::Type )
 

Definition at line 44 of file KX_PythonController.cpp.

Referenced by GetReplica().

SCA_PythonController::~SCA_PythonController ( ) [virtual]
 

Definition at line 49 of file KX_PythonController.cpp.

SCA_PythonController::SCA_PythonController ( SCA_IObject * gameobj,
PyTypeObject * T = &Type )
 

Definition at line 62 of file SCA_PythonController.cpp.

SCA_PythonController::~SCA_PythonController ( ) [virtual]
 

Definition at line 49 of file KX_PythonController.cpp.


Member Function Documentation

CValue * SCA_PythonController::GetReplica ( ) [inline, virtual]
 

Reimplemented from CValue.

Definition at line 32 of file SCA_PythonController.h.

SCA_PythonController::KX_PYMETHOD ( SCA_PythonController,
GetScript )
 

SCA_PythonController::KX_PYMETHOD ( SCA_PythonController,
SetScript )
 

SCA_PythonController::KX_PYMETHOD_DOC ( SCA_PythonController,
GetSensor )
 

PyObject * SCA_PythonController::PyGetActuator ( PyObject * self,
PyObject * args,
PyObject * kwds )
 

Definition at line 70 of file KX_PythonController.cpp.

PyObject * SCA_PythonController::PyGetActuators ( PyObject * self,
PyObject * args,
PyObject * kwds )
 

Definition at line 123 of file SCA_PythonController.cpp.

PyObject * SCA_PythonController::PyGetSensor ( PyObject * self,
PyObject * args,
PyObject * kwds )
 

Definition at line 86 of file KX_PythonController.cpp.

PyObject * SCA_PythonController::PyGetSensors ( PyObject * self,
PyObject * args,
PyObject * kwds )
 

Definition at line 170 of file SCA_PythonController.cpp.

void SCA_PythonController::SetDictionary ( PyObject * pythondictionary ) [inline]
 

Definition at line 47 of file SCA_PythonController.h.

Referenced by BL_ConvertControllers(), and CreateSampleLogic().

void SCA_PythonController::SetScriptName ( const CCString & name ) [inline]
 

Definition at line 44 of file SCA_PythonController.h.

Referenced by BL_ConvertControllers(), and CreateSampleLogic().

void SCA_PythonController::SetScriptText ( const CCString & text ) [inline]
 

Definition at line 40 of file SCA_PythonController.h.

Referenced by BL_ConvertControllers(), and CreateSampleLogic().

void SCA_PythonController::Trigger ( class SCA_LogicManager * logicmgr ) [virtual]
 

Reimplemented from SCA_IController.

Definition at line 54 of file KX_PythonController.cpp.

void SCA_PythonController::Trigger ( class SCA_LogicManager * logicmgr ) [virtual]
 

Reimplemented from SCA_IController.

Definition at line 54 of file KX_PythonController.cpp.

PyObject * SCA_PythonController::_getattr ( char * attr ) [virtual]
 

Reimplemented from SCA_ILogicBrick.

Definition at line 64 of file KX_PythonController.cpp.

PyObject * SCA_PythonController::_getattr ( char * attr ) [virtual]
 

Reimplemented from SCA_ILogicBrick.

Definition at line 64 of file KX_PythonController.cpp.

PyObject * SCA_PythonController::sPyAddActiveActuator ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 82 of file SCA_PythonController.h.

PyObject * SCA_PythonController::sPyGetActuator ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 22 of file KX_PythonController.h.

PyObject * SCA_PythonController::sPyGetActuators ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 55 of file SCA_PythonController.h.

PyObject * SCA_PythonController::sPyGetCurrentController ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 71 of file SCA_PythonController.h.

PyObject * SCA_PythonController::sPyGetCurrentController ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 38 of file KX_PythonController.h.

PyObject * SCA_PythonController::sPyGetSensor ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 31 of file KX_PythonController.h.

PyObject * SCA_PythonController::sPyGetSensors ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 64 of file SCA_PythonController.h.


Member Data Documentation

PyObject * SCA_PythonController::m_pythondictionary [protected]
 

Definition at line 24 of file SCA_PythonController.h.

SCA_PythonController * SCA_PythonController::m_sCurrentController = NULL [static]
 

Execute Python scripts.

Version:

Id:
SCA_PythonController.cpp,v 1.3 2001/01/31 15:10:44 coockie Exp

Definition at line 27 of file SCA_PythonController.h.

CCString SCA_PythonController::m_scriptName [protected]
 

Definition at line 23 of file SCA_PythonController.h.

CCString SCA_PythonController::m_scriptText [protected]
 

Definition at line 22 of file SCA_PythonController.h.

char * SCA_PythonController::sPyAddActiveActuator__doc__ = "addActiveActuator(actuator,bool)" [static]
 

Definition at line 79 of file SCA_PythonController.h.

char * SCA_PythonController::sPyGetActuator__doc__ = "GetActuator" [static]
 

Definition at line 21 of file KX_PythonController.h.

char * SCA_PythonController::sPyGetActuators__doc__ = "getActuators" [static]
 

Definition at line 54 of file SCA_PythonController.h.

char * SCA_PythonController::sPyGetCurrentController__doc__ = "GetCurrentController" [static]
 

Definition at line 70 of file SCA_PythonController.h.

char * SCA_PythonController::sPyGetSensor__doc__ = "GetSensor" [static]
 

Definition at line 30 of file KX_PythonController.h.

char * SCA_PythonController::sPyGetSensors__doc__ = "getSensors" [static]
 

Definition at line 63 of file SCA_PythonController.h.


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