diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-07-17 09:28:23 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-07-17 09:28:23 +0400 |
commit | baa2f99f079920d404af65798a8df3e82bcc6a48 (patch) | |
tree | 2e8fb2bad0c3824e87e12cc0ebf3d4933eeb56f3 /source/gameengine/Converter/BL_ActionActuator.h | |
parent | 90fb63152628927d5d13b0101f4f2dcec025d2f7 (diff) |
Port Python updates from Tuhopuu2:
getType/setType to action/sound actuator (sgefant)
Use a more generic python -> math conversion.
Diffstat (limited to 'source/gameengine/Converter/BL_ActionActuator.h')
-rw-r--r-- | source/gameengine/Converter/BL_ActionActuator.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/gameengine/Converter/BL_ActionActuator.h b/source/gameengine/Converter/BL_ActionActuator.h index 9e8054bff81..ca1f937cbd4 100644 --- a/source/gameengine/Converter/BL_ActionActuator.h +++ b/source/gameengine/Converter/BL_ActionActuator.h @@ -93,11 +93,21 @@ public: KX_PYMETHOD_DOC(BL_ActionActuator,GetFrame); KX_PYMETHOD_DOC(BL_ActionActuator,GetProperty); // KX_PYMETHOD(BL_ActionActuator,GetChannel); - + KX_PYMETHOD_DOC(BL_ActionActuator,GetType); + KX_PYMETHOD_DOC(BL_ActionActuator,SetType); virtual PyObject* _getattr(const STR_String& attr); void SetBlendTime (float newtime); + enum ActionActType + { + KX_ACT_ACTION_PLAY = 0, + KX_ACT_ACTION_FLIPPER = 2, + KX_ACT_ACTION_LOOPSTOP, + KX_ACT_ACTION_LOOPEND, + KX_ACT_ACTION_PROPERTY = 6 + }; + protected: float m_blendframe; MT_Point3 m_lastpos; |