Blender V2.61 - r43446
Public Member Functions | Protected Attributes

KX_TouchSensor Class Reference

#include <KX_TouchSensor.h>

Inheritance diagram for KX_TouchSensor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KX_TouchSensor (class SCA_EventManager *eventmgr, class KX_GameObject *gameobj, bool bFindMaterial, bool bTouchPulse, const STR_String &touchedpropname)
virtual ~KX_TouchSensor ()
virtual CValueGetReplica ()
virtual void ProcessReplica ()
virtual void SynchronizeTransform ()
virtual bool Evaluate ()
virtual void Init ()
virtual void ReParent (SCA_IObject *parent)
virtual void RegisterSumo (KX_TouchEventManager *touchman)
virtual void UnregisterSumo (KX_TouchEventManager *touchman)
virtual void UnregisterToManager ()
virtual bool NewHandleCollision (void *obj1, void *obj2, const PHY_CollData *colldata)
virtual bool BroadPhaseFilterCollision (void *obj1, void *obj2)
virtual bool BroadPhaseSensorFilterCollision (void *obj1, void *obj2)
virtual sensortype GetSensorType ()
virtual bool IsPositiveTrigger ()
virtual void EndFrame ()
class PHY_IPhysicsControllerGetPhysicsController ()

Protected Attributes

Py_Header STR_String m_touchedpropname
bool m_bFindMaterial
bool m_bTouchPulse
class PHY_IPhysicsControllerm_physCtrl
bool m_bCollision
bool m_bTriggered
bool m_bLastTriggered
int m_bLastCount
uint_ptr m_bColliderHash
uint_ptr m_bLastColliderHash
SCA_IObjectm_hitObject
class CListValuem_colliders

Detailed Description

Definition at line 51 of file KX_TouchSensor.h.


Constructor & Destructor Documentation

KX_TouchSensor::KX_TouchSensor ( class SCA_EventManager eventmgr,
class KX_GameObject gameobj,
bool  bFindMaterial,
bool  bTouchPulse,
const STR_String touchedpropname 
)
KX_TouchSensor::~KX_TouchSensor ( ) [virtual]

Definition at line 136 of file KX_TouchSensor.cpp.

References m_colliders, and CValue::Release().


Member Function Documentation

virtual bool KX_TouchSensor::BroadPhaseFilterCollision ( void *  obj1,
void *  obj2 
) [inline, virtual]

Reimplemented in KX_NearSensor.

Definition at line 104 of file KX_TouchSensor.h.

bool KX_TouchSensor::BroadPhaseSensorFilterCollision ( void *  obj1,
void *  obj2 
) [virtual]
void KX_TouchSensor::EndFrame ( ) [virtual]
bool KX_TouchSensor::Evaluate ( ) [virtual]
class PHY_IPhysicsController* KX_TouchSensor::GetPhysicsController ( ) [inline]

Definition at line 117 of file KX_TouchSensor.h.

References m_physCtrl.

Referenced by MergeScene_LogicBrick().

CValue * KX_TouchSensor::GetReplica ( void  ) [virtual]

Implements SCA_ISensor.

Reimplemented in KX_NearSensor, and KX_RadarSensor.

Definition at line 142 of file KX_TouchSensor.cpp.

References KX_TouchSensor(), and ProcessReplica().

virtual sensortype KX_TouchSensor::GetSensorType ( ) [inline, virtual]

Reimplemented from SCA_ISensor.

Reimplemented in KX_NearSensor, and KX_RadarSensor.

Definition at line 106 of file KX_TouchSensor.h.

References SCA_ISensor::ST_TOUCH.

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

Reimplemented from SCA_ISensor.

Definition at line 109 of file KX_TouchSensor.h.

References m_bTriggered, and SCA_ISensor::m_invert.

bool KX_TouchSensor::NewHandleCollision ( void *  obj1,
void *  obj2,
const PHY_CollData colldata 
) [virtual]
void KX_TouchSensor::ProcessReplica ( ) [virtual]

Makes sure any internal data owned by this class is deep copied.

Reimplemented from SCA_ISensor.

Reimplemented in KX_NearSensor.

Definition at line 149 of file KX_TouchSensor.cpp.

References Init(), and m_colliders.

Referenced by GetReplica().

void KX_TouchSensor::RegisterSumo ( KX_TouchEventManager touchman) [virtual]
void KX_TouchSensor::ReParent ( SCA_IObject parent) [virtual]

Reimplemented from SCA_ISensor.

Reimplemented in KX_NearSensor.

Definition at line 156 of file KX_TouchSensor.cpp.

References KX_GameObject::getClientInfo(), m_physCtrl, and KX_ClientObjectInfo::m_sensors.

void KX_TouchSensor::SynchronizeTransform ( ) [virtual]

Reimplemented in KX_NearSensor, and KX_RadarSensor.

Definition at line 51 of file KX_TouchSensor.cpp.

void KX_TouchSensor::UnregisterSumo ( KX_TouchEventManager touchman) [virtual]
void KX_TouchSensor::UnregisterToManager ( ) [virtual]

Reimplemented from SCA_ISensor.

Definition at line 66 of file KX_TouchSensor.cpp.

References EndFrame().


Member Data Documentation

Definition at line 71 of file KX_TouchSensor.h.

Referenced by EndFrame(), Evaluate(), Init(), and NewHandleCollision().

bool KX_TouchSensor::m_bCollision [protected]

Definition at line 65 of file KX_TouchSensor.h.

Referenced by Init().

Definition at line 60 of file KX_TouchSensor.h.

Referenced by BroadPhaseSensorFilterCollision(), and NewHandleCollision().

Definition at line 72 of file KX_TouchSensor.h.

Referenced by Evaluate(), and Init().

Definition at line 70 of file KX_TouchSensor.h.

Referenced by Evaluate(), and Init().

Definition at line 67 of file KX_TouchSensor.h.

Referenced by Evaluate(), KX_NearSensor::Evaluate(), and Init().

Definition at line 61 of file KX_TouchSensor.h.

Referenced by Evaluate(), and NewHandleCollision().

bool KX_TouchSensor::m_bTriggered [protected]

The sensor should only look for objects with this property.

Definition at line 59 of file KX_TouchSensor.h.

Referenced by KX_NearSensor::BroadPhaseFilterCollision(), BroadPhaseSensorFilterCollision(), and NewHandleCollision().


The documentation for this class was generated from the following files: