|
Blender
V2.59
|
#include <SCA_IActuator.h>

Use of SG_DList : None Use of SG_QList : element of activated actuator list of their owner Head: SCA_IObject::m_activeActuators
Definition at line 45 of file SCA_IActuator.h.
This class also inherits the default copy constructors
Definition at line 69 of file SCA_IActuator.h.
| SCA_IActuator::SCA_IActuator | ( | SCA_IObject * | gameobj, |
| KX_ACTUATOR_TYPE | type | ||
| ) |
Definition at line 39 of file SCA_IActuator.cpp.
| SCA_IActuator::~SCA_IActuator | ( | ) | [virtual] |
Definition at line 95 of file SCA_IActuator.cpp.
References RemoveAllEvents().
| void SCA_IActuator::Activate | ( | SG_DList & | head | ) | [virtual] |
Reimplemented in KX_StateActuator.
Definition at line 63 of file SCA_IActuator.cpp.
References SG_DList::AddBack(), SCA_ILogicBrick::InsertActiveQList(), SCA_IObject::m_activeActuators, SCA_ILogicBrick::m_gameobj, and SG_QList::QEmpty().
Referenced by SCA_LogicManager::AddActiveActuator().
| void SCA_IActuator::AddEvent | ( | bool | event | ) | [inline] |
Add an event to an actuator.
Definition at line 124 of file SCA_IActuator.h.
References m_negevent, and m_posevent.
Referenced by SCA_LogicManager::AddActiveActuator(), and SCA_LogicManager::UpdateFrame().
| void SCA_IActuator::ClrLink | ( | ) | [inline] |
Definition at line 157 of file SCA_IActuator.h.
References m_links.
Referenced by SCA_IObject::ReParentLogic().
| void SCA_IActuator::Deactivate | ( | ) | [virtual] |
remove this actuator from the list of active actuators
Reimplemented in KX_StateActuator.
Definition at line 74 of file SCA_IActuator.cpp.
References SG_DList::Delink(), SCA_IObject::m_activeActuators, SCA_ILogicBrick::m_gameobj, SG_QList::QDelink(), and SG_QList::QEmpty().
Referenced by SCA_LogicManager::RemoveActuator().
| void SCA_IActuator::DecLink | ( | ) |
Definition at line 100 of file SCA_IActuator.cpp.
References m_links, SCA_ILogicBrick::m_name, and STR_String::Ptr().
| void SCA_IActuator::IncLink | ( | ) | [inline] |
Definition at line 158 of file SCA_IActuator.h.
References m_links.
Referenced by SCA_IController::LinkToActuator().
| bool SCA_IActuator::IsNegativeEvent | ( | ) | const [inline] |
Return true iff all the current events are negative. The definition of negative event is not immediately clear. But usually refers to key-up events or events where no action is required.
Definition at line 140 of file SCA_IActuator.h.
References m_negevent, and m_posevent.
Referenced by KX_SCA_EndObjectActuator::Update(), KX_NetworkMessageActuator::Update(), SCA_ActuatorSensor::Update(), KX_SCA_DynamicActuator::Update(), SCA_2DFilterActuator::Update(), KX_VisibilityActuator::Update(), BL_ArmatureActuator::Update(), KX_TrackToActuator::Update(), KX_SCA_ReplaceMeshActuator::Update(), KX_ParentActuator::Update(), KX_GameActuator::Update(), SCA_PropertyActuator::Update(), KX_StateActuator::Update(), KX_SceneActuator::Update(), SCA_RandomActuator::Update(), KX_SoundActuator::Update(), KX_SCA_AddObjectActuator::Update(), KX_CameraActuator::Update(), KX_ConstraintActuator::Update(), KX_IpoActuator::Update(), and KX_ObjectActuator::Update().
| bool SCA_IActuator::IsNoLink | ( | ) | const [inline] |
Definition at line 160 of file SCA_IActuator.h.
References m_links.
Referenced by SCA_LogicManager::UpdateFrame().
| bool SCA_IActuator::IsType | ( | KX_ACTUATOR_TYPE | type | ) | [inline] |
Definition at line 161 of file SCA_IActuator.h.
References m_type.
| void SCA_IActuator::LinkToController | ( | SCA_IController * | controller | ) |
Definition at line 110 of file SCA_IActuator.cpp.
References m_linkedcontrollers.
Referenced by SCA_LogicManager::RegisterToActuator().
| void SCA_IActuator::ProcessReplica | ( | ) | [virtual] |
Makes sure any internal data owned by this class is deep copied.
Reimplemented from CValue.
Reimplemented in KX_ObjectActuator, KX_CameraActuator, KX_SCA_AddObjectActuator, KX_SoundActuator, SCA_RandomActuator, KX_SceneActuator, BL_ActionActuator, BL_ShapeActionActuator, SCA_PropertyActuator, KX_ParentActuator, BL_ArmatureActuator, and KX_TrackToActuator.
Definition at line 86 of file SCA_IActuator.cpp.
References m_linkedcontrollers, and RemoveAllEvents().
Referenced by KX_SCA_EndObjectActuator::GetReplica(), KX_NetworkMessageActuator::GetReplica(), KX_SCA_DynamicActuator::GetReplica(), KX_VisibilityActuator::GetReplica(), SCA_2DFilterActuator::GetReplica(), KX_SCA_ReplaceMeshActuator::GetReplica(), KX_GameActuator::GetReplica(), KX_StateActuator::GetReplica(), KX_ConstraintActuator::GetReplica(), and KX_IpoActuator::GetReplica().
| void SCA_IActuator::RemoveAllEvents | ( | ) | [inline, protected] |
Definition at line 58 of file SCA_IActuator.h.
References m_negevent, and m_posevent.
Referenced by ProcessReplica(), KX_SCA_EndObjectActuator::Update(), KX_NetworkMessageActuator::Update(), SCA_2DFilterActuator::Update(), KX_SCA_DynamicActuator::Update(), KX_VisibilityActuator::Update(), BL_ArmatureActuator::Update(), KX_TrackToActuator::Update(), KX_SCA_ReplaceMeshActuator::Update(), KX_ParentActuator::Update(), KX_GameActuator::Update(), BL_ShapeActionActuator::Update(), BL_ActionActuator::Update(), SCA_PropertyActuator::Update(), KX_StateActuator::Update(), KX_SceneActuator::Update(), SCA_RandomActuator::Update(), KX_SoundActuator::Update(), KX_SCA_AddObjectActuator::Update(), KX_CameraActuator::Update(), KX_ConstraintActuator::Update(), KX_IpoActuator::Update(), KX_ObjectActuator::Update(), SCA_LogicManager::UpdateFrame(), and ~SCA_IActuator().
| void SCA_IActuator::UnlinkAllControllers | ( | ) |
Definition at line 132 of file SCA_IActuator.cpp.
References m_linkedcontrollers.
Referenced by SCA_LogicManager::RemoveActuator().
| void SCA_IActuator::UnlinkController | ( | class SCA_IController * | cont | ) |
Definition at line 115 of file SCA_IActuator.cpp.
References SCA_ILogicBrick::GetName(), CValue::GetName(), SCA_ILogicBrick::GetParent(), SCA_ILogicBrick::m_gameobj, m_linkedcontrollers, and STR_String::ReadPtr().
| virtual bool SCA_IActuator::UnlinkObject | ( | SCA_IObject * | clientobj | ) | [inline, virtual] |
UnlinkObject(...) Certain actuator use gameobject pointers (like TractTo actuator) This function can be called when an object is removed to make sure that the actuator will not use it anymore.
Reimplemented in KX_ObjectActuator, KX_CameraActuator, KX_SCA_AddObjectActuator, KX_SceneActuator, KX_ParentActuator, SCA_PropertyActuator, BL_ArmatureActuator, and KX_TrackToActuator.
Definition at line 104 of file SCA_IActuator.h.
| bool SCA_IActuator::Update | ( | double | curtime, |
| bool | frame | ||
| ) | [virtual] |
Update(...) Update the actuator based upon the events received since the last call to Update, the current time and deltatime the time elapsed in this frame ? It is the responsibility of concrete Actuators to clear their event's. This is usually done in the Update() method via a call to RemoveAllEvents()
Reimplemented in KX_IpoActuator, KX_ConstraintActuator, KX_CameraActuator, KX_SoundActuator, BL_ActionActuator, BL_ShapeActionActuator, BL_ArmatureActuator, and KX_TrackToActuator.
Definition at line 49 of file SCA_IActuator.cpp.
References Update().
Referenced by SCA_LogicManager::UpdateFrame().
| bool SCA_IActuator::Update | ( | void | ) | [virtual] |
Reimplemented in KX_ObjectActuator, KX_SCA_AddObjectActuator, SCA_RandomActuator, KX_SceneActuator, KX_StateActuator, SCA_PropertyActuator, KX_GameActuator, KX_ParentActuator, KX_SCA_ReplaceMeshActuator, KX_VisibilityActuator, SCA_2DFilterActuator, KX_SCA_DynamicActuator, KX_SCA_EndObjectActuator, and KX_NetworkMessageActuator.
Definition at line 57 of file SCA_IActuator.cpp.
References assert.
Referenced by Update().
friend class SCA_LogicManager [friend] |
Definition at line 47 of file SCA_IActuator.h.
std::vector<class SCA_IController*> SCA_IActuator::m_linkedcontrollers [protected] |
Definition at line 56 of file SCA_IActuator.h.
Referenced by LinkToController(), ProcessReplica(), UnlinkAllControllers(), and UnlinkController().
int SCA_IActuator::m_links [protected] |
Definition at line 50 of file SCA_IActuator.h.
Referenced by ClrLink(), DecLink(), IncLink(), and IsNoLink().
bool SCA_IActuator::m_negevent [protected] |
Definition at line 54 of file SCA_IActuator.h.
Referenced by AddEvent(), IsNegativeEvent(), RemoveAllEvents(), BL_ShapeActionActuator::Update(), BL_ActionActuator::Update(), and KX_IpoActuator::Update().
bool SCA_IActuator::m_posevent [protected] |
Definition at line 53 of file SCA_IActuator.h.
Referenced by AddEvent(), IsNegativeEvent(), RemoveAllEvents(), BL_ShapeActionActuator::Update(), BL_ActionActuator::Update(), KX_SoundActuator::Update(), and KX_IpoActuator::Update().
int SCA_IActuator::m_type [protected] |
Reimplemented in KX_IpoActuator, and KX_SoundActuator.
Definition at line 49 of file SCA_IActuator.h.
Referenced by IsType().