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

SCA_PropertySensor Class Reference

#include <SCA_PropertySensor.h>

Inheritance diagram for SCA_PropertySensor:
Inheritance graph
[legend]

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 Member Functions

 SCA_PropertySensor (class SCA_EventManager *eventmgr, SCA_IObject *gameobj, const STR_String &propname, const STR_String &propval, const STR_String &propmaxval, KX_PROPSENSOR_TYPE checktype)
virtual void Delete ()
virtual ~SCA_PropertySensor ()
virtual CValueGetReplica ()
virtual void Init ()
void PrecalculateRangeExpression ()
bool CheckPropertyCondition ()
virtual bool Evaluate ()
virtual bool IsPositiveTrigger ()
virtual CValueFindIdentifier (const STR_String &identifiername)

Public Attributes

const STR_String S_KX_PROPSENSOR_EQ_STRING

Detailed Description

Definition at line 38 of file SCA_PropertySensor.h.


Member Enumeration Documentation

Enumerator:
KX_PROPSENSOR_NODEF 
KX_PROPSENSOR_EQUAL 
KX_PROPSENSOR_NOTEQUAL 
KX_PROPSENSOR_INTERVAL 
KX_PROPSENSOR_CHANGED 
KX_PROPSENSOR_EXPRESSION 
KX_PROPSENSOR_MAX 

Definition at line 54 of file SCA_PropertySensor.h.


Constructor & Destructor Documentation

SCA_PropertySensor::SCA_PropertySensor ( class SCA_EventManager eventmgr,
SCA_IObject gameobj,
const STR_String propname,
const STR_String propval,
const STR_String propmaxval,
KX_PROPSENSOR_TYPE  checktype 
)
SCA_PropertySensor::~SCA_PropertySensor ( ) [virtual]

Definition at line 144 of file SCA_PropertySensor.cpp.

References NULL, and CExpression::Release().


Member Function Documentation

bool SCA_PropertySensor::CheckPropertyCondition ( )
void SCA_PropertySensor::Delete ( ) [virtual]

For property sensor, it is used to release the pre-calculated expression so that self references are removed before the sensor itself is released

Reimplemented from SCA_ILogicBrick.

Definition at line 104 of file SCA_PropertySensor.cpp.

References NULL, CExpression::Release(), and CValue::Release().

bool SCA_PropertySensor::Evaluate ( ) [virtual]
CValue * SCA_PropertySensor::FindIdentifier ( const STR_String identifiername) [virtual]

Reimplemented from CValue.

Definition at line 308 of file SCA_PropertySensor.cpp.

References CValue::FindIdentifier(), and SCA_ILogicBrick::GetParent().

CValue * SCA_PropertySensor::GetReplica ( void  ) [virtual]
void SCA_PropertySensor::Init ( void  ) [virtual]

Reimplemented from SCA_ISensor.

Definition at line 81 of file SCA_PropertySensor.cpp.

References SCA_ISensor::m_invert, and SCA_ISensor::m_reset.

Referenced by GetReplica(), and SCA_PropertySensor().

bool SCA_PropertySensor::IsPositiveTrigger ( ) [virtual]

Reimplemented from SCA_ISensor.

Definition at line 133 of file SCA_PropertySensor.cpp.

References SCA_ISensor::m_invert.

void SCA_PropertySensor::PrecalculateRangeExpression ( )

Member Data Documentation

Definition at line 64 of file SCA_PropertySensor.h.


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