diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2011-06-11 04:14:47 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2011-06-11 04:14:47 +0400 |
commit | c431863312bd839a4b97d7939434a1f8bc8eb9fc (patch) | |
tree | a0d1dce68acdcd39e397f4eba8125d01fcd21565 /source/gameengine/Ketsji/BL_Action.h | |
parent | 9d5f436d7591a1199cee13bb5b20010edfe003d2 (diff) |
BGE Animations:
* Adding BL_Action::Play() and BL_Action::Stop()
* Making BL_ActonManger reuse BL_Actions instead of recreating them all the time
* Making the Property play type work for the Action actuator.
Diffstat (limited to 'source/gameengine/Ketsji/BL_Action.h')
-rw-r--r-- | source/gameengine/Ketsji/BL_Action.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/BL_Action.h b/source/gameengine/Ketsji/BL_Action.h index f7d0feb20af..1eb4483eb37 100644 --- a/source/gameengine/Ketsji/BL_Action.h +++ b/source/gameengine/Ketsji/BL_Action.h @@ -64,16 +64,17 @@ private: void InitIPO(); void SetLocalTime(float curtime); public: - BL_Action(class KX_GameObject* gameobj, - const char* name, + BL_Action(class KX_GameObject* gameobj); + ~BL_Action(); + + void Play(const char* name, float start, float end, float blendin, short play_mode, short blend_mode, float playback_speed); - ~BL_Action(); - + void Stop(); bool IsDone() {return m_done;} void Update(float curtime); |