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

KX_TouchSensor Class Reference

Senses touch and collision events. More...

#include <KX_TouchSensor.h>

Inheritance diagram for KX_TouchSensor:

SCA_ISensor SCA_ILogicBrick CValue PyObjectPlus PyObject KX_NearSensor KX_RadarSensor List of all members.

Public Methods

 KX_TouchSensor (class SCA_EventManager* eventmgr, class KX_GameObject* gameobj, class SM_Object* sumoObj, bool fFindMaterial, const CCString& touchedpropname, PyTypeObject* T=&Type)
virtual ~KX_TouchSensor ()
virtual CValueGetReplica ()
virtual void SynchronizeTransform ()
 Senses touch and collision events. More...

virtual bool Evaluate (CValue* event)
virtual void ReParent (SCA_IObject* parent)
 Abstract class for sensor logic bricks. More...

void RegisterSumo (class SCA_EventManager *eventmgr, DT_RespTableHandle resptable)
virtual bool IsPositiveTrigger ()
SM_Object* GetSumoObject ()
void EndFrame ()
virtual void HandleCollision (void* obj1,void* obj2, const DT_CollData * coll_data)
virtual PyObject_getattr (char *attr)
 KX_PYMETHOD_DOC (KX_TouchSensor,SetProperty)
 KX_PYMETHOD_DOC (KX_TouchSensor,GetProperty)
 KX_PYMETHOD_DOC (KX_TouchSensor,GetHitObject)
 KX_PYMETHOD_DOC (KX_TouchSensor,GetHitObjectList)
 KX_PYMETHOD_DOC (KX_TouchSensor,GetTouchMaterial)
 KX_PYMETHOD_DOC (KX_TouchSensor,SetTouchMaterial)

Static Public Methods

void collisionResponse (void *client_data, void *object1, void *object2, const DT_CollData *coll_data)

Protected Attributes

 Py_Header
CCString m_touchedpropname
bool m_bFindMaterial
class SCA_EventManagerm_eventmgr
class SM_Object* m_sumoObj
SM_ClientObjectInfo m_client_info
bool m_bCollision
bool m_bTriggered
bool m_bLastTriggered
SCA_IObjectm_hitObject
class CListValuem_colliders

Detailed Description

Senses touch and collision events.

Version:

Id:
KX_TouchSensor.h,v 1.20 2000/12/19 12:26:01 coockie Exp

Definition at line 16 of file KX_TouchSensor.h.


Constructor & Destructor Documentation

KX_TouchSensor::KX_TouchSensor ( class SCA_EventManager * eventmgr,
class KX_GameObject * gameobj,
class SM_Object * sumoObj,
bool bFindMaterial,
const CCString & touchedpropname,
PyTypeObject * T = &Type )
 

Definition at line 50 of file KX_TouchSensor.cpp.

Referenced by GetReplica().

KX_TouchSensor::~KX_TouchSensor ( ) [virtual]
 

Definition at line 64 of file KX_TouchSensor.cpp.


Member Function Documentation

void KX_TouchSensor::EndFrame ( )
 

Definition at line 30 of file KX_TouchSensor.cpp.

bool KX_TouchSensor::Evaluate ( CValue * event ) [virtual]
 

Reimplemented from SCA_ISensor.

Reimplemented in KX_NearSensor.

Definition at line 35 of file KX_TouchSensor.cpp.

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

Reimplemented from SCA_ISensor.

Reimplemented in KX_NearSensor.

Definition at line 42 of file KX_TouchSensor.h.

SM_Object * KX_TouchSensor::GetSumoObject ( ) [inline]
 

Definition at line 76 of file KX_TouchSensor.h.

Referenced by KX_TouchEventManager::RegisterSensor().

void KX_TouchSensor::HandleCollision ( void * obj1,
void * obj2,
const DT_CollData * coll_data ) [virtual]
 

Reimplemented in KX_NearSensor.

Definition at line 91 of file KX_TouchSensor.cpp.

bool KX_TouchSensor::IsPositiveTrigger ( ) [inline, virtual]
 

Reimplemented from SCA_ISensor.

Definition at line 70 of file KX_TouchSensor.h.

KX_TouchSensor::KX_PYMETHOD_DOC ( KX_TouchSensor,
SetTouchMaterial )
 

KX_TouchSensor::KX_PYMETHOD_DOC ( KX_TouchSensor,
GetTouchMaterial )
 

KX_TouchSensor::KX_PYMETHOD_DOC ( KX_TouchSensor,
GetHitObjectList )
 

KX_TouchSensor::KX_PYMETHOD_DOC ( KX_TouchSensor,
GetHitObject )
 

KX_TouchSensor::KX_PYMETHOD_DOC ( KX_TouchSensor,
GetProperty )
 

KX_TouchSensor::KX_PYMETHOD_DOC ( KX_TouchSensor,
SetProperty )
 

void KX_TouchSensor::ReParent ( SCA_IObject * parent ) [virtual]
 

Abstract class for sensor logic bricks.

Version:

Id:
SCA_ISensor.cpp,v 1.4 2000/12/19 22:28:59 coockie Exp

Reimplemented from SCA_ISensor.

Definition at line 69 of file KX_TouchSensor.cpp.

void KX_TouchSensor::RegisterSumo ( class SCA_EventManager * eventmgr,
DT_RespTableHandle resptable )
 

Definition at line 77 of file KX_TouchSensor.cpp.

Referenced by KX_TouchEventManager::RegisterSensor().

void KX_TouchSensor::SynchronizeTransform ( ) [virtual]
 

Senses touch and collision events.

Version:

Id:
KX_TouchSensor.cpp,v 1.27 2001/01/31 22:16:42 coockie Exp

Reimplemented in KX_RadarSensor.

Definition at line 18 of file KX_TouchSensor.cpp.

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

Reimplemented from SCA_ISensor.

Reimplemented in KX_NearSensor.

Definition at line 181 of file KX_TouchSensor.cpp.

void KX_TouchSensor::collisionResponse ( void * client_data,
void * object1,
void * object2,
const DT_CollData * coll_data ) [inline, static]
 

Definition at line 57 of file KX_TouchSensor.h.


Member Data Documentation

KX_TouchSensor::Py_Header [protected]
 

Reimplemented from SCA_ISensor.

Definition at line 19 of file KX_TouchSensor.h.

bool KX_TouchSensor::m_bCollision [protected]
 

Definition at line 27 of file KX_TouchSensor.h.

bool KX_TouchSensor::m_bFindMaterial [protected]
 

Definition at line 22 of file KX_TouchSensor.h.

bool KX_TouchSensor::m_bLastTriggered [protected]
 

Definition at line 29 of file KX_TouchSensor.h.

bool KX_TouchSensor::m_bTriggered [protected]
 

Definition at line 28 of file KX_TouchSensor.h.

SM_ClientObjectInfo KX_TouchSensor::m_client_info [protected]
 

Definition at line 26 of file KX_TouchSensor.h.

class CListValue * KX_TouchSensor::m_colliders [protected]
 

Definition at line 31 of file KX_TouchSensor.h.

class SCA_EventManager * KX_TouchSensor::m_eventmgr [protected]
 

Reimplemented from SCA_ISensor.

Definition at line 23 of file KX_TouchSensor.h.

SCA_IObject * KX_TouchSensor::m_hitObject [protected]
 

Definition at line 30 of file KX_TouchSensor.h.

class SM_Object * KX_TouchSensor::m_sumoObj [protected]
 

Definition at line 24 of file KX_TouchSensor.h.

CCString KX_TouchSensor::m_touchedpropname [protected]
 

Definition at line 21 of file KX_TouchSensor.h.


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