Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PHY_ICharacter.h « common « Physics « gameengine « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e2fc5e45125dd50663268dc1b7b1abeedeb44592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

/** \file PHY_ICharacter.h
 *  \ingroup phys
 */

#ifndef __PHY_ICHARACTER_H__
#define __PHY_ICHARACTER_H__

//PHY_ICharacter provides a generic interface for "character" controllers

#ifdef WITH_CXX_GUARDEDALLOC
#include "MEM_guardedalloc.h"
#endif

class PHY_ICharacter
{
public:	

	virtual void Jump()= 0;
	virtual bool OnGround()= 0;

	virtual float GetGravity()= 0;
	virtual void SetGravity(float gravity)= 0;

#ifdef WITH_CXX_GUARDEDALLOC
	MEM_CXX_CLASS_ALLOC_FUNCS("GE:PHY_ICharacter")
#endif
};

#endif //__PHY_ICHARACTER_H__