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

SCA_ISensor Class Reference

Interface Class for all logic Sensors. More...

#include <SCA_ISensor.h>

Inheritance diagram for SCA_ISensor:

SCA_ILogicBrick CValue PyObjectPlus PyObject KX_RaySensor KX_TouchSensor SCA_AlwaysSensor SCA_KeyboardSensor SCA_MouseSensor SCA_PropertySensor SCA_RandomSensor KX_NearSensor KX_RadarSensor List of all members.

Public Methods

 SCA_ISensor (SCA_IObject* gameobj, class SCA_EventManager* eventmgr, PyTypeObject* T )
 ~SCA_ISensor ()
virtual void ReParent (SCA_IObject* parent)
 Abstract class for sensor logic bricks. More...

void Activate (class SCA_LogicManager* logicmgr,CValue* event)
virtual bool Evaluate (CValue* event) = 0
virtual bool IsPositiveTrigger ()
virtual PyObject_getattr (char *attr)
virtual CValueGetReplica () = 0
void SetPulseMode (bool posmode, bool negmode, int posfreq, int negfreq)
void SetInvert (bool inv)
void RegisterToManager ()
virtual float GetNumber ()
 KX_PYMETHOD_DOC (SCA_ISensor,IsPositive)
 KX_PYMETHOD_DOC (SCA_ISensor,GetUsePosPulseMode)
 getInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,SetUsePosPulseMode)
 setInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,GetPosFrequency)
 getInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,SetPosFrequency)
 setInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,GetUseNegPulseMode)
 getInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,SetUseNegPulseMode)
 setInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,GetNegFrequency)
 getInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,SetNegFrequency)
 setInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,GetInvert)
 getInvert.

 KX_PYMETHOD_DOC (SCA_ISensor,SetInvert)
 setInvert.


Detailed Description

Interface Class for all logic Sensors.

Implements pulsemode,pulsefrequency

Definition at line 11 of file SCA_ISensor.h.


Constructor & Destructor Documentation

SCA_ISensor::SCA_ISensor ( SCA_IObject * gameobj,
class SCA_EventManager * eventmgr,
PyTypeObject * T ) [inline]
 

Definition at line 27 of file SCA_ISensor.h.

SCA_ISensor::~SCA_ISensor ( ) [inline]
 

Definition at line 44 of file SCA_ISensor.h.


Member Function Documentation

void SCA_ISensor::Activate ( class SCA_LogicManager * logicmgr,
CValue * event )
 

Definition at line 72 of file SCA_ISensor.cpp.

Referenced by SCA_RandomEventManager::NextFrame(), SCA_MouseManager::NextFrame(), SCA_KeyboardManager::NextFrame(), SCA_AlwaysEventManager::NextFrame(), and KX_RayEventManager::NextFrame().

virtual bool SCA_ISensor::Evaluate ( CValue * event ) [pure virtual]
 

Reimplemented in SCA_AlwaysSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_RandomSensor, KX_NearSensor, KX_RaySensor, and KX_TouchSensor.

Referenced by Activate().

float SCA_ISensor::GetNumber ( ) [inline, virtual]
 

Reimplemented from SCA_ILogicBrick.

Definition at line 82 of file SCA_ISensor.h.

virtual CValue* SCA_ISensor::GetReplica ( ) [pure virtual]
 

Reimplemented from CValue.

Reimplemented in SCA_AlwaysSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_RandomSensor, KX_NearSensor, KX_RaySensor, and KX_TouchSensor.

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

Reimplemented in SCA_AlwaysSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_RandomSensor, KX_RaySensor, and KX_TouchSensor.

Definition at line 53 of file SCA_ISensor.h.

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

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
SetInvert )
 

setInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
GetInvert )
 

getInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, SCA_RandomSensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
SetNegFrequency )
 

setInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
GetNegFrequency )
 

getInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, SCA_RandomSensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
SetUseNegPulseMode )
 

setInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
GetUseNegPulseMode )
 

getInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, SCA_RandomSensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
SetPosFrequency )
 

setInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
GetPosFrequency )
 

getInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, SCA_RandomSensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
SetUsePosPulseMode )
 

setInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
GetUsePosPulseMode )
 

getInvert.

Reimplemented in SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_PropertySensor, SCA_PropertySensor, SCA_RandomSensor, and SCA_RandomSensor.

SCA_ISensor::KX_PYMETHOD_DOC ( SCA_ISensor,
IsPositive )
 

void SCA_ISensor::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_ILogicBrick.

Reimplemented in KX_TouchSensor.

Definition at line 11 of file SCA_ISensor.cpp.

Referenced by KX_TouchSensor::ReParent(), and SCA_IObject::ReParentLogic().

void SCA_ISensor::RegisterToManager ( )
 

Definition at line 67 of file SCA_ISensor.cpp.

Referenced by BL_ConvertSensors(), CreateSampleLogic(), and main().

void SCA_ISensor::SetInvert ( bool inv ) [inline]
 

Definition at line 76 of file SCA_ISensor.h.

Referenced by BL_ConvertSensors().

void SCA_ISensor::SetPulseMode ( bool posmode,
bool negmode,
int posfreq,
int negfreq ) [inline]
 

Definition at line 69 of file SCA_ISensor.h.

Referenced by BL_ConvertSensors(), and CreateSampleLogic().

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

Reimplemented from SCA_ILogicBrick.

Reimplemented in SCA_AlwaysSensor, SCA_KeyboardSensor, SCA_MouseSensor, SCA_PropertySensor, SCA_RandomSensor, KX_NearSensor, KX_RaySensor, and KX_TouchSensor.

Definition at line 61 of file SCA_ISensor.cpp.


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