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-05-24 11:52:29 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-05-24 11:52:29 +0400
commit017fa2c19f3d8ff6b03bc81f8c58fb8910b9824f (patch)
treeaea936ef3ee68523b40107bdc2c128e74d424178 /source/gameengine/Ketsji/KX_GameObject.h
parentc6881d08e52b100d5b3fc3ecd116b95e6b4f7d59 (diff)
BGE Animations:
* Adding a BL_Action and a BL_ActionManager * Each KX_GameObject has a BL_ActionManager, which can control up to for BL_Action objects at a given time * Currently, the only interface to BL_ActionManager is through KX_GameObject via Python * Only armature animations are currently supported
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.h')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.h b/source/gameengine/Ketsji/KX_GameObject.h
index 50fbebe1341..a5ca5f872d5 100644
--- a/source/gameengine/Ketsji/KX_GameObject.h
+++ b/source/gameengine/Ketsji/KX_GameObject.h
@@ -63,6 +63,7 @@ class RAS_MeshObject;
class KX_IPhysicsController;
class PHY_IGraphicController;
class PHY_IPhysicsEnvironment;
+class BL_ActionManager;
struct Object;
#ifdef WITH_PYTHON
@@ -112,6 +113,9 @@ protected:
SG_Node* m_pSGNode;
MT_CmMatrix4x4 m_OpenGL_4x4Matrix;
+
+ // The action manager is used to play/stop/update actions
+ BL_ActionManager* m_actionManager;
public:
bool m_isDeformable;
@@ -199,6 +203,11 @@ public:
void RemoveParent(KX_Scene *scene);
/**
+ * Kick the object's action manager
+ */
+ void UpdateActionManager(float curtime);
+
+ /**
* Construct a game object. This class also inherits the
* default constructors - use those with care!
*/
@@ -853,6 +862,8 @@ public:
KX_PYMETHOD_DOC_O(KX_GameObject,getVectTo);
KX_PYMETHOD_DOC_VARARGS(KX_GameObject, sendMessage);
KX_PYMETHOD_VARARGS(KX_GameObject, ReinstancePhysicsMesh);
+
+ KX_PYMETHOD_DOC(KX_GameObject, playAction);
/* Dict access */
KX_PYMETHOD_VARARGS(KX_GameObject,get);