BGE: This patch adds a character wrapper (similar to the already implemented vehicle...
[blender.git] / source / gameengine / Ketsji / KX_CharacterWrapper.h
1
2 /** \file KX_CharacterWrapper.h
3  *  \ingroup ketsji
4  */
5
6 #ifndef __KX_CHARACTERWRAPPER_H__
7 #define __KX_CHARACTERWRAPPER_H__
8
9 #include "Value.h"
10 #include "PHY_DynamicTypes.h"
11 class PHY_ICharacter;
12
13
14 ///Python interface to character physics
15 class   KX_CharacterWrapper : public PyObjectPlus
16 {
17         Py_Header
18
19 public:
20         KX_CharacterWrapper(PHY_ICharacter* character);
21         virtual ~KX_CharacterWrapper();
22 #ifdef WITH_PYTHON
23         KX_PYMETHOD_DOC_NOARGS(KX_CharacterWrapper, jump);
24
25         static PyObject* pyattr_get_onground(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
26         
27         static PyObject*        pyattr_get_gravity(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef);
28         static int                      pyattr_set_gravity(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value);
29 #endif // WITH_PYTHON
30
31 private:
32         PHY_ICharacter*                  m_character;
33 };
34
35 #endif //__KX_CHARACTERWRAPPER_H__