Blender V2.61 - r43446
|
#include <SCA_RandomSensor.h>
Public Member Functions | |
SCA_RandomSensor (class SCA_EventManager *rndmgr, SCA_IObject *gameobj, int startseed) | |
virtual | ~SCA_RandomSensor () |
virtual CValue * | GetReplica () |
virtual void | ProcessReplica () |
virtual bool | Evaluate () |
virtual bool | IsPositiveTrigger () |
virtual void | Init () |
Definition at line 40 of file SCA_RandomSensor.h.
SCA_RandomSensor::SCA_RandomSensor | ( | class SCA_EventManager * | rndmgr, |
SCA_IObject * | gameobj, | ||
int | startseed | ||
) |
SCA_RandomSensor::~SCA_RandomSensor | ( | ) | [virtual] |
Definition at line 60 of file SCA_RandomSensor.cpp.
References SCA_RandomNumberGenerator::Release().
bool SCA_RandomSensor::Evaluate | ( | ) | [virtual] |
Implements SCA_ISensor.
Definition at line 97 of file SCA_RandomSensor.cpp.
References SCA_RandomNumberGenerator::Draw(), and SCA_ISensor::m_pulse_frequency.
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().