Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2011-06-01 09:46:19 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-06-01 09:46:19 +0400
commit54a37ba8559ef33bb35146c7cfc7dd6b38004d7c (patch)
tree9ad410029b757070764c28e504394440ef965314 /source/gameengine/Ketsji/KX_GameObject.h
parentb31385f3bd4af4e524fdeb719563dd293a86957c (diff)
BGE Animations: Adding more functions to BL_ActionManager and KX_GameObject:
BL_ActionManager: * IsActionDone(short layer) - Checks to see if the animation on the given layer has finished. KX_GameObject: * PlayAction(...) - Adds an action to the object's action manager * StopAction(short layer) - Remove an action from the object's action manager * IsActionDone(short layer) - Check if an action has finished playing
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.h')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.h b/source/gameengine/Ketsji/KX_GameObject.h
index a5ca5f872d5..75c71833ce1 100644
--- a/source/gameengine/Ketsji/KX_GameObject.h
+++ b/source/gameengine/Ketsji/KX_GameObject.h
@@ -203,6 +203,28 @@ public:
void RemoveParent(KX_Scene *scene);
/**
+ * Adds an action to the object's action manager
+ */
+ void PlayAction(const char* name,
+ float start,
+ float end,
+ short layer=0,
+ float blendin=0.f,
+ short play_mode=0,
+ short blend_mode=0,
+ float playback_speed=1.f);
+
+ /**
+ * Remove an action from the object's action manager
+ */
+ void StopAction(short layer);
+
+ /**
+ * Check if an action has finished playing
+ */
+ bool IsActionDone(short layer);
+
+ /**
* Kick the object's action manager
*/
void UpdateActionManager(float curtime);