Blender V2.61 - r43446
Public Member Functions

SCA_RandomSensor Class Reference

#include <SCA_RandomSensor.h>

Inheritance diagram for SCA_RandomSensor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SCA_RandomSensor (class SCA_EventManager *rndmgr, SCA_IObject *gameobj, int startseed)
virtual ~SCA_RandomSensor ()
virtual CValueGetReplica ()
virtual void ProcessReplica ()
virtual bool Evaluate ()
virtual bool IsPositiveTrigger ()
virtual void Init ()

Detailed Description

Definition at line 40 of file SCA_RandomSensor.h.


Constructor & Destructor Documentation

SCA_RandomSensor::SCA_RandomSensor ( class SCA_EventManager rndmgr,
SCA_IObject gameobj,
int  startseed 
)

Definition at line 49 of file SCA_RandomSensor.cpp.

References Init().

Referenced by GetReplica().

SCA_RandomSensor::~SCA_RandomSensor ( ) [virtual]

Definition at line 60 of file SCA_RandomSensor.cpp.

References SCA_RandomNumberGenerator::Release().


Member Function Documentation

bool SCA_RandomSensor::Evaluate ( ) [virtual]
CValue * SCA_RandomSensor::GetReplica ( void  ) [virtual]

Implements SCA_ISensor.

Definition at line 74 of file SCA_RandomSensor.cpp.

References CValue::ProcessReplica(), and SCA_RandomSensor().

void SCA_RandomSensor::Init ( void  ) [virtual]

Reimplemented from SCA_ISensor.

Definition at line 65 of file SCA_RandomSensor.cpp.

References SCA_RandomNumberGenerator::Draw().

Referenced by SCA_RandomSensor().

bool SCA_RandomSensor::IsPositiveTrigger ( ) [virtual]

Reimplemented from SCA_ISensor.

Definition at line 91 of file SCA_RandomSensor.cpp.

References SCA_ISensor::m_invert.

void SCA_RandomSensor::ProcessReplica ( ) [virtual]

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

Reimplemented from SCA_ISensor.

Definition at line 83 of file SCA_RandomSensor.cpp.

References SCA_RandomNumberGenerator::AddRef().


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