BGE: This patch adds a character wrapper (similar to the already implemented vehicle...
[blender.git] / source / gameengine / Physics / common / PHY_ICharacter.h
1
2 /** \file PHY_ICharacter.h
3  *  \ingroup phys
4  */
5
6 #ifndef __PHY_ICHARACTER_H__
7 #define __PHY_ICHARACTER_H__
8
9 //PHY_ICharacter provides a generic interface for "character" controllers
10
11 #ifdef WITH_CXX_GUARDEDALLOC
12 #include "MEM_guardedalloc.h"
13 #endif
14
15 class PHY_ICharacter
16 {
17 public: 
18
19         virtual void Jump()= 0;
20         virtual bool OnGround()= 0;
21
22         virtual float GetGravity()= 0;
23         virtual void SetGravity(float gravity)= 0;
24
25 #ifdef WITH_CXX_GUARDEDALLOC
26         MEM_CXX_CLASS_ALLOC_FUNCS("GE:PHY_ICharacter")
27 #endif
28 };
29
30 #endif //__PHY_ICHARACTER_H__