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

SCA_PropertySensor Class Reference

Property sensor. More...

#include <SCA_PropertySensor.h>

Inheritance diagram for SCA_PropertySensor:

SCA_ISensor SCA_ILogicBrick CValue PyObjectPlus PyObject List of all members.

Public Types

enum  KX_PROPSENSOR_TYPE {
  KX_PROPSENSOR_NODEF = 0, KX_PROPSENSOR_EQUAL, KX_PROPSENSOR_NOTEQUAL, KX_PROPSENSOR_INTERVAL,
  KX_PROPSENSOR_CHANGED, KX_PROPSENSOR_EXPRESSION, KX_PROPSENSOR_MAX
}

Public Methods

 SCA_PropertySensor (class SCA_EventManager* eventmgr, SCA_IObject* gameobj, const CCString& propname, const CCString& propval, const CCString& propmaxval, KX_PROPSENSOR_TYPE checktype, PyTypeObject* T=&Type )
 Property sensor. More...

virtual ~SCA_PropertySensor ()
virtual CValueGetReplica ()
bool CheckPropertyCondition ()
virtual bool Evaluate (CValue* event)
virtual bool IsPositiveTrigger ()
virtual CValueFindIdentifier (const CCString& identifiername)
virtual PyObject_getattr (char *attr)
 KX_PYMETHOD_DOC (SCA_PropertySensor,GetType)
 getInvert.

 KX_PYMETHOD_DOC (SCA_PropertySensor,SetType)
 setInvert.

 KX_PYMETHOD_DOC (SCA_PropertySensor,SetProperty)
 setInvert.

 KX_PYMETHOD_DOC (SCA_PropertySensor,GetProperty)
 getInvert.

 KX_PYMETHOD_DOC (SCA_PropertySensor,GetValue)
 getInvert.

 KX_PYMETHOD_DOC (SCA_PropertySensor,SetValue)
 setInvert.


Public Attributes

const CCString S_KX_PROPSENSOR_EQ_STRING

Detailed Description

Property sensor.

Version:

Id:
SCA_PropertySensor.h,v 1.3 2001/01/17 16:51:26 coockie Exp

Definition at line 12 of file SCA_PropertySensor.h.


Member Enumeration Documentation

enum SCA_PropertySensor::KX_PROPSENSOR_TYPE
 

Enumeration values:
KX_PROPSENSOR_NODEF  
KX_PROPSENSOR_EQUAL  
KX_PROPSENSOR_NOTEQUAL  
KX_PROPSENSOR_INTERVAL  
KX_PROPSENSOR_CHANGED  
KX_PROPSENSOR_EXPRESSION  
KX_PROPSENSOR_MAX  

Definition at line 32 of file SCA_PropertySensor.h.


Constructor & Destructor Documentation

SCA_PropertySensor::SCA_PropertySensor ( class SCA_EventManager * eventmgr,
SCA_IObject * gameobj,
const CCString & propname,
const CCString & propval,
const CCString & propmaxval,
KX_PROPSENSOR_TYPE checktype,
PyTypeObject * T = &Type )
 

Property sensor.

Version:

Id:
SCA_PropertySensor.cpp,v 1.3 2001/01/17 16:51:26 coockie Exp

Definition at line 16 of file SCA_PropertySensor.cpp.

Referenced by GetReplica().

SCA_PropertySensor::~SCA_PropertySensor ( ) [virtual]
 

Definition at line 56 of file SCA_PropertySensor.cpp.


Member Function Documentation

bool SCA_PropertySensor::CheckPropertyCondition ( )
 

Definition at line 79 of file SCA_PropertySensor.cpp.

Referenced by Evaluate().

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

Reimplemented from SCA_ISensor.

Definition at line 65 of file SCA_PropertySensor.cpp.

CValue * SCA_PropertySensor::FindIdentifier ( const CCString & identifiername ) [virtual]
 

Reimplemented from CValue.

Definition at line 180 of file SCA_PropertySensor.cpp.

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

Reimplemented from SCA_ISensor.

Definition at line 53 of file SCA_PropertySensor.h.

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

Reimplemented from SCA_ISensor.

Definition at line 63 of file SCA_PropertySensor.h.

SCA_PropertySensor::KX_PYMETHOD_DOC ( SCA_PropertySensor,
SetValue )
 

setInvert.

Reimplemented from SCA_ISensor.

SCA_PropertySensor::KX_PYMETHOD_DOC ( SCA_PropertySensor,
GetValue )
 

getInvert.

Reimplemented from SCA_ISensor.

SCA_PropertySensor::KX_PYMETHOD_DOC ( SCA_PropertySensor,
GetProperty )
 

getInvert.

Reimplemented from SCA_ISensor.

SCA_PropertySensor::KX_PYMETHOD_DOC ( SCA_PropertySensor,
SetProperty )
 

setInvert.

Reimplemented from SCA_ISensor.

SCA_PropertySensor::KX_PYMETHOD_DOC ( SCA_PropertySensor,
SetType )
 

setInvert.

Reimplemented from SCA_ISensor.

SCA_PropertySensor::KX_PYMETHOD_DOC ( SCA_PropertySensor,
GetType )
 

getInvert.

Reimplemented from SCA_ISensor.

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

Reimplemented from SCA_ISensor.

Definition at line 234 of file SCA_PropertySensor.cpp.


Member Data Documentation

const CCString SCA_PropertySensor::S_KX_PROPSENSOR_EQ_STRING
 

Definition at line 42 of file SCA_PropertySensor.h.


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