2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323...
[blender.git] / source / gameengine / Ketsji / KX_VehicleWrapper.h
index cad926c..de7fe75 100644 (file)
@@ -12,8 +12,8 @@ class PHY_IMotionState;
 class  KX_VehicleWrapper : public PyObjectPlus
 {
        Py_Header;
-       virtual PyObject*               _getattr(const char *attr);
-       virtual int                     _setattr(const char *attr, PyObject *value);
+       virtual PyObject*               py_getattro(PyObject *attr);
+       virtual int                     py_setattro(PyObject *attr, PyObject *value);
 
        std::vector<PHY_IMotionState*> m_motionStates;
 
@@ -23,31 +23,31 @@ public:
        int                     getConstraintId();
        
        
-       KX_PYMETHOD(KX_VehicleWrapper,AddWheel);
-       KX_PYMETHOD(KX_VehicleWrapper,GetNumWheels);
-       KX_PYMETHOD(KX_VehicleWrapper,GetWheelOrientationQuaternion);
-       KX_PYMETHOD(KX_VehicleWrapper,GetWheelRotation);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,AddWheel);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetNumWheels);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelOrientationQuaternion);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelRotation);
        
-       KX_PYMETHOD(KX_VehicleWrapper,GetWheelPosition);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelPosition);
        
-       KX_PYMETHOD(KX_VehicleWrapper,GetConstraintId);
-       KX_PYMETHOD(KX_VehicleWrapper,GetConstraintType);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetConstraintId);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetConstraintType);
 
-       KX_PYMETHOD(KX_VehicleWrapper,SetSteeringValue);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSteeringValue);
 
-       KX_PYMETHOD(KX_VehicleWrapper,ApplyEngineForce);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,ApplyEngineForce);
 
-       KX_PYMETHOD(KX_VehicleWrapper,ApplyBraking);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,ApplyBraking);
 
-       KX_PYMETHOD(KX_VehicleWrapper,SetTyreFriction);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetTyreFriction);
 
-       KX_PYMETHOD(KX_VehicleWrapper,SetSuspensionStiffness);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionStiffness);
        
-       KX_PYMETHOD(KX_VehicleWrapper,SetSuspensionDamping);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionDamping);
        
-       KX_PYMETHOD(KX_VehicleWrapper,SetSuspensionCompression);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionCompression);
        
-       KX_PYMETHOD(KX_VehicleWrapper,SetRollInfluence);
+       KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetRollInfluence);
        
 
 private: