rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / gameengine / Ketsji / KX_VehicleWrapper.h
1 #ifndef KX_VEHICLE_WRAPPER
2 #define KX_VEHICLE_WRAPPER
3
4 #include "Value.h"
5 #include "PHY_DynamicTypes.h"
6 class PHY_IVehicle;
7 class PHY_IMotionState;
8
9 #include <vector>
10
11 ///Python interface to physics vehicles (primarily 4-wheel cars and 2wheel bikes)
12 class   KX_VehicleWrapper : public PyObjectPlus
13 {
14         Py_Header;
15
16         std::vector<PHY_IMotionState*> m_motionStates;
17
18 public:
19         KX_VehicleWrapper(PHY_IVehicle* vehicle,class PHY_IPhysicsEnvironment* physenv);
20         virtual ~KX_VehicleWrapper ();
21         int                     getConstraintId();
22         
23 #ifdef WITH_PYTHON
24         
25         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,AddWheel);
26         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetNumWheels);
27         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelOrientationQuaternion);
28         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelRotation);
29         
30         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelPosition);
31         
32         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetConstraintId);
33         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetConstraintType);
34
35         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSteeringValue);
36
37         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,ApplyEngineForce);
38
39         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,ApplyBraking);
40
41         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetTyreFriction);
42
43         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionStiffness);
44         
45         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionDamping);
46         
47         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionCompression);
48         
49         KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetRollInfluence);
50 #endif // WITH_PYTHON
51
52 private:
53         PHY_IVehicle*                    m_vehicle;
54         PHY_IPhysicsEnvironment* m_physenv;
55 };
56
57 #endif //KX_VEHICLE_WRAPPER