2012-11-04 20:56:02 +00:00
|
|
|
|
|
|
|
/** \file KX_CharacterWrapper.h
|
|
|
|
* \ingroup ketsji
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __KX_CHARACTERWRAPPER_H__
|
|
|
|
#define __KX_CHARACTERWRAPPER_H__
|
|
|
|
|
|
|
|
#include "Value.h"
|
|
|
|
#include "PHY_DynamicTypes.h"
|
|
|
|
class PHY_ICharacter;
|
|
|
|
|
|
|
|
|
|
|
|
///Python interface to character physics
|
|
|
|
class KX_CharacterWrapper : public PyObjectPlus
|
|
|
|
{
|
|
|
|
Py_Header
|
|
|
|
|
|
|
|
public:
|
|
|
|
KX_CharacterWrapper(PHY_ICharacter* character);
|
|
|
|
virtual ~KX_CharacterWrapper();
|
|
|
|
#ifdef WITH_PYTHON
|
|
|
|
KX_PYMETHOD_DOC_NOARGS(KX_CharacterWrapper, jump);
|
|
|
|
|
|
|
|
static PyObject* pyattr_get_onground(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
|
|
|
|
|
|
|
|
static PyObject* pyattr_get_gravity(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef);
|
|
|
|
static int pyattr_set_gravity(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value);
|
2012-12-26 01:25:53 +00:00
|
|
|
static PyObject* pyattr_get_max_jumps(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef);
|
|
|
|
static int pyattr_set_max_jumps(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value);
|
2012-12-29 10:22:19 +00:00
|
|
|
static PyObject* pyattr_get_jump_count(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef);
|
2013-01-30 05:55:17 +00:00
|
|
|
static PyObject* pyattr_get_walk_dir(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef);
|
|
|
|
static int pyattr_set_walk_dir(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value);
|
2012-11-04 20:56:02 +00:00
|
|
|
#endif // WITH_PYTHON
|
|
|
|
|
|
|
|
private:
|
|
|
|
PHY_ICharacter* m_character;
|
|
|
|
};
|
|
|
|
|
2012-11-10 05:42:50 +00:00
|
|
|
#endif /* __KX_CHARACTERWRAPPER_H__ */
|