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

Public Member Functions | |
| BL_ActionActuator (SCA_IObject *gameobj, const STR_String &propname, const STR_String &framepropname, float starttime, float endtime, struct bAction *action, short playtype, short blendin, short priority, short end_reset, float stride) | |
| virtual | ~BL_ActionActuator () |
| virtual bool | Update (double curtime, bool frame) |
| virtual CValue * | GetReplica () |
| virtual void | ProcessReplica () |
| void | SetBlendTime (float newtime) |
| bAction * | GetAction () |
| void | SetAction (bAction *act) |
Public Attributes | |
| Py_Header | |
Protected Member Functions | |
| void | SetStartTime (float curtime) |
| void | SetLocalTime (float curtime) |
| bool | ClampLocalTime () |
Protected Attributes | |
| MT_Point3 | m_lastpos |
| float | m_blendframe |
| int | m_flag |
| float | m_startframe |
| float | m_endframe |
| float | m_starttime |
| float | m_localtime |
| float | m_lastUpdate |
| float | m_blendin |
| float | m_blendstart |
| float | m_stridelength |
| short | m_playtype |
| short | m_priority |
| bool | m_end_reset |
| struct bPose * | m_pose |
| struct bPose * | m_blendpose |
| struct bPose * | m_userpose |
| struct bAction * | m_action |
| STR_String | m_propname |
| STR_String | m_framepropname |
Definition at line 42 of file BL_ActionActuator.h.
| BL_ActionActuator::BL_ActionActuator | ( | SCA_IObject * | gameobj, |
| const STR_String & | propname, | ||
| const STR_String & | framepropname, | ||
| float | starttime, | ||
| float | endtime, | ||
| struct bAction * | action, | ||
| short | playtype, | ||
| short | blendin, | ||
| short | priority, | ||
| short | end_reset, | ||
| float | stride | ||
| ) | [inline] |
Definition at line 46 of file BL_ActionActuator.h.
Referenced by GetReplica().
| BL_ActionActuator::~BL_ActionActuator | ( | ) | [virtual] |
Definition at line 63 of file BL_ActionActuator.cpp.
References game_free_pose(), m_blendpose, m_pose, and m_userpose.
| bool BL_ActionActuator::ClampLocalTime | ( | ) | [protected] |
Definition at line 94 of file BL_ActionActuator.cpp.
References m_endframe, m_localtime, and m_startframe.
| bAction* BL_ActionActuator::GetAction | ( | ) | [inline] |
Definition at line 88 of file BL_ActionActuator.h.
References m_action.
Referenced by KX_BlenderSceneConverter::FreeBlendFile().
| CValue * BL_ActionActuator::GetReplica | ( | void | ) | [virtual] |
Implements CValue.
Definition at line 88 of file BL_ActionActuator.cpp.
References BL_ActionActuator(), and ProcessReplica().
| void BL_ActionActuator::ProcessReplica | ( | ) | [virtual] |
Makes sure any internal data owned by this class is deep copied.
Reimplemented from SCA_IActuator.
Definition at line 73 of file BL_ActionActuator.cpp.
References m_blendpose, m_lastUpdate, m_localtime, m_pose, m_startframe, and NULL.
Referenced by GetReplica().
| void BL_ActionActuator::SetAction | ( | bAction * | act | ) | [inline] |
Definition at line 89 of file BL_ActionActuator.h.
References m_action.
Referenced by KX_BlenderSceneConverter::FreeBlendFile().
| void BL_ActionActuator::SetBlendTime | ( | float | newtime | ) |
Definition at line 84 of file BL_ActionActuator.cpp.
References m_blendframe.
Referenced by BL_ArmatureObject::SetActiveAction().
| void BL_ActionActuator::SetLocalTime | ( | float | curtime | ) | [protected] |
Definition at line 133 of file BL_ActionActuator.cpp.
References ACT_FLAG_REVERSE, KX_KetsjiEngine::GetAnimFrameRate(), m_endframe, m_flag, m_localtime, m_startframe, and m_starttime.
Referenced by Update().
| void BL_ActionActuator::SetStartTime | ( | float | curtime | ) | [protected] |
Definition at line 123 of file BL_ActionActuator.cpp.
References ACT_FLAG_REVERSE, KX_KetsjiEngine::GetAnimFrameRate(), m_endframe, m_flag, m_localtime, m_startframe, and m_starttime.
Referenced by Update().
| bool BL_ActionActuator::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 from SCA_IActuator.
Definition at line 147 of file BL_ActionActuator.cpp.
References ACT_ACTION_FLIPPER, ACT_ACTION_FROM_PROP, ACT_ACTION_LOOP_END, ACT_ACTION_LOOP_STOP, ACT_ACTION_MOTION, ACT_ACTION_PINGPONG, ACT_ACTION_PLAY, ACT_FLAG_ACTIVE, ACT_FLAG_KEYUP, ACT_FLAG_LOCKINPUT, ACT_FLAG_REVERSE, animsys_evaluate_action(), extract_pose_from_pose(), game_blend_poses(), game_free_pose(), KX_KetsjiEngine::GetAnimFrameRate(), BL_ArmatureObject::GetArmatureObject(), BL_ArmatureObject::GetMRDPose(), CValue::GetNumber(), SCA_ILogicBrick::GetParent(), BL_ArmatureObject::GetPose(), CValue::GetProperty(), KX_KetsjiEngine::GetSuspendedDelta(), MT_Vector3::length(), length(), m_action, m_blendframe, m_blendin, m_blendpose, m_blendstart, m_end_reset, m_endframe, m_flag, m_framepropname, m_lastpos, m_lastUpdate, m_localtime, SCA_IActuator::m_negevent, m_playtype, m_pose, SCA_IActuator::m_posevent, m_priority, m_propname, m_startframe, m_starttime, m_stridelength, m_userpose, KX_GameObject::NodeGetWorldPosition(), NULL, CValue::Release(), SCA_IActuator::RemoveAllEvents(), RNA_id_pointer_create(), BL_ArmatureObject::SetActiveAction(), SetLocalTime(), BL_ArmatureObject::SetPose(), CValue::SetProperty(), SetStartTime(), and CValue::SetValue().
struct bAction* BL_ActionActuator::m_action [protected] |
Definition at line 169 of file BL_ActionActuator.h.
Referenced by GetAction(), SetAction(), and Update().
float BL_ActionActuator::m_blendframe [protected] |
Definition at line 148 of file BL_ActionActuator.h.
Referenced by SetBlendTime(), and Update().
float BL_ActionActuator::m_blendin [protected] |
Definition at line 160 of file BL_ActionActuator.h.
Referenced by Update().
struct bPose* BL_ActionActuator::m_blendpose [protected] |
Definition at line 167 of file BL_ActionActuator.h.
Referenced by ProcessReplica(), Update(), and ~BL_ActionActuator().
float BL_ActionActuator::m_blendstart [protected] |
Definition at line 161 of file BL_ActionActuator.h.
Referenced by Update().
bool BL_ActionActuator::m_end_reset [protected] |
Definition at line 165 of file BL_ActionActuator.h.
Referenced by Update().
float BL_ActionActuator::m_endframe [protected] |
The frame this action ends
Definition at line 153 of file BL_ActionActuator.h.
Referenced by ClampLocalTime(), SetLocalTime(), SetStartTime(), and Update().
int BL_ActionActuator::m_flag [protected] |
Definition at line 149 of file BL_ActionActuator.h.
Referenced by SetLocalTime(), SetStartTime(), and Update().
STR_String BL_ActionActuator::m_framepropname [protected] |
Definition at line 171 of file BL_ActionActuator.h.
Referenced by Update().
MT_Point3 BL_ActionActuator::m_lastpos [protected] |
Definition at line 147 of file BL_ActionActuator.h.
Referenced by Update().
float BL_ActionActuator::m_lastUpdate [protected] |
Definition at line 159 of file BL_ActionActuator.h.
Referenced by ProcessReplica(), and Update().
float BL_ActionActuator::m_localtime [protected] |
The current time of the action
Definition at line 157 of file BL_ActionActuator.h.
Referenced by ClampLocalTime(), ProcessReplica(), SetLocalTime(), SetStartTime(), and Update().
short BL_ActionActuator::m_playtype [protected] |
Definition at line 163 of file BL_ActionActuator.h.
Referenced by Update().
struct bPose* BL_ActionActuator::m_pose [protected] |
Definition at line 166 of file BL_ActionActuator.h.
Referenced by ProcessReplica(), Update(), and ~BL_ActionActuator().
short BL_ActionActuator::m_priority [protected] |
Definition at line 164 of file BL_ActionActuator.h.
Referenced by Update().
STR_String BL_ActionActuator::m_propname [protected] |
Definition at line 170 of file BL_ActionActuator.h.
Referenced by Update().
float BL_ActionActuator::m_startframe [protected] |
The frame this action starts
Definition at line 151 of file BL_ActionActuator.h.
Referenced by ClampLocalTime(), ProcessReplica(), SetLocalTime(), SetStartTime(), and Update().
float BL_ActionActuator::m_starttime [protected] |
The time this action started
Definition at line 155 of file BL_ActionActuator.h.
Referenced by SetLocalTime(), SetStartTime(), and Update().
float BL_ActionActuator::m_stridelength [protected] |
Definition at line 162 of file BL_ActionActuator.h.
Referenced by Update().
struct bPose* BL_ActionActuator::m_userpose [protected] |
Definition at line 168 of file BL_ActionActuator.h.
Referenced by Update(), and ~BL_ActionActuator().
Reimplemented from SCA_ILogicBrick.
Definition at line 45 of file BL_ActionActuator.h.