Added function name to many of the PyArg_ParseTuple calls in gameengine
authorAndre Susano Pinto <andresusanopinto@gmail.com>
Fri, 10 Apr 2009 16:45:19 +0000 (16:45 +0000)
committerAndre Susano Pinto <andresusanopinto@gmail.com>
Fri, 10 Apr 2009 16:45:19 +0000 (16:45 +0000)
This way python raises more useful messages.

38 files changed:
source/gameengine/Converter/BL_ActionActuator.cpp
source/gameengine/Converter/BL_ShapeActionActuator.cpp
source/gameengine/Expressions/Value.cpp
source/gameengine/GameLogic/SCA_ActuatorSensor.cpp
source/gameengine/GameLogic/SCA_DelaySensor.cpp
source/gameengine/GameLogic/SCA_ILogicBrick.cpp
source/gameengine/GameLogic/SCA_ISensor.cpp
source/gameengine/GameLogic/SCA_JoystickSensor.cpp
source/gameengine/GameLogic/SCA_KeyboardSensor.cpp
source/gameengine/GameLogic/SCA_PropertyActuator.cpp
source/gameengine/GameLogic/SCA_PropertySensor.cpp
source/gameengine/GameLogic/SCA_PythonController.cpp
source/gameengine/GameLogic/SCA_RandomActuator.cpp
source/gameengine/GameLogic/SCA_RandomSensor.cpp
source/gameengine/Ketsji/BL_Shader.cpp
source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.cpp
source/gameengine/Ketsji/KX_BlenderMaterial.cpp
source/gameengine/Ketsji/KX_CDActuator.cpp
source/gameengine/Ketsji/KX_Camera.cpp
source/gameengine/Ketsji/KX_CameraActuator.cpp
source/gameengine/Ketsji/KX_ConstraintActuator.cpp
source/gameengine/Ketsji/KX_GameActuator.cpp
source/gameengine/Ketsji/KX_IpoActuator.cpp
source/gameengine/Ketsji/KX_MeshProxy.cpp
source/gameengine/Ketsji/KX_ObjectActuator.cpp
source/gameengine/Ketsji/KX_ParentActuator.cpp
source/gameengine/Ketsji/KX_PhysicsObjectWrapper.cpp
source/gameengine/Ketsji/KX_PolyProxy.cpp
source/gameengine/Ketsji/KX_PolygonMaterial.cpp
source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp
source/gameengine/Ketsji/KX_SCA_DynamicActuator.cpp
source/gameengine/Ketsji/KX_Scene.cpp
source/gameengine/Ketsji/KX_SceneActuator.cpp
source/gameengine/Ketsji/KX_SoundActuator.cpp
source/gameengine/Ketsji/KX_StateActuator.cpp
source/gameengine/Ketsji/KX_TrackToActuator.cpp
source/gameengine/Ketsji/KX_VehicleWrapper.cpp
source/gameengine/Ketsji/KX_VisibilityActuator.cpp

index 8d7624db5d4a0ac671b803f29d3bc77c37acdcab..960eafda230bed862200dd26354dd5241ec6135b 100644 (file)
@@ -573,7 +573,7 @@ PyObject* BL_ActionActuator::PySetAction(PyObject* self,
        char *string;
        int     reset = 1;
 
-       if (PyArg_ParseTuple(args,"s|i",&string, &reset))
+       if (PyArg_ParseTuple(args,"s|i:setAction",&string, &reset))
        {
                bAction *action;
                
@@ -608,7 +608,7 @@ PyObject* BL_ActionActuator::PySetStart(PyObject* self,
 
        float start;
        
-       if (PyArg_ParseTuple(args,"f",&start))
+       if (PyArg_ParseTuple(args,"f:setStart",&start))
        {
                m_startframe = start;
        }
@@ -631,7 +631,7 @@ PyObject* BL_ActionActuator::PySetEnd(PyObject* self,
 
        float end;
        
-       if (PyArg_ParseTuple(args,"f",&end))
+       if (PyArg_ParseTuple(args,"f:setEnd",&end))
        {
                m_endframe = end;
        }
@@ -655,7 +655,7 @@ PyObject* BL_ActionActuator::PySetBlendin(PyObject* self,
 
        float blendin;
        
-       if (PyArg_ParseTuple(args,"f",&blendin))
+       if (PyArg_ParseTuple(args,"f:setBlendin",&blendin))
        {
                m_blendin = blendin;
        }
@@ -680,7 +680,7 @@ PyObject* BL_ActionActuator::PySetBlendtime(PyObject* self,
 
        float blendframe;
        
-       if (PyArg_ParseTuple(args,"f",&blendframe))
+       if (PyArg_ParseTuple(args,"f:setBlendtime",&blendframe))
        {
                m_blendframe = blendframe * m_blendin;
                if (m_blendframe<0)
@@ -709,7 +709,7 @@ PyObject* BL_ActionActuator::PySetPriority(PyObject* self,
 
        int priority;
        
-       if (PyArg_ParseTuple(args,"i",&priority))
+       if (PyArg_ParseTuple(args,"i:setPriority",&priority))
        {
                m_priority = priority;
        }
@@ -732,7 +732,7 @@ PyObject* BL_ActionActuator::PySetFrame(PyObject* self,
 
        float frame;
        
-       if (PyArg_ParseTuple(args,"f",&frame))
+       if (PyArg_ParseTuple(args,"f:setFrame",&frame))
        {
                m_localtime = frame;
                if (m_localtime<m_startframe)
@@ -760,7 +760,7 @@ PyObject* BL_ActionActuator::PySetProperty(PyObject* self,
 
        char *string;
        
-       if (PyArg_ParseTuple(args,"s",&string))
+       if (PyArg_ParseTuple(args,"s:setProperty",&string))
        {
                m_propname = string;
        }
@@ -783,7 +783,7 @@ PyObject* BL_ActionActuator::PySetFrameProperty(PyObject* self,
 
        char *string;
        
-       if (PyArg_ParseTuple(args,"s",&string))
+       if (PyArg_ParseTuple(args,"s:setFrameProperty",&string))
        {
                m_framepropname = string;
        }
@@ -800,7 +800,7 @@ PyObject* BL_ActionActuator::PyGetChannel(PyObject* self,
                                                                                   PyObject* kwds) {
        char *string;
        
-       if (PyArg_ParseTuple(args,"s",&string))
+       if (PyArg_ParseTuple(args,"s:getChannel",&string))
        {
                m_propname = string;
        }
@@ -836,7 +836,7 @@ PyObject* BL_ActionActuator::PySetType(PyObject* self,
 
        short typeArg;
                                                                                                              
-    if (!PyArg_ParseTuple(args, "h", &typeArg)) {
+    if (!PyArg_ParseTuple(args, "h:setType", &typeArg)) {
         return NULL;
     }
 
@@ -894,7 +894,7 @@ KX_PYMETHODDEF_DOC(BL_ActionActuator, setChannel,
        int row,col;
        int     mode = 0;       /* 0 for bone space, 1 for armature/world space */
        
-       if (!PyArg_ParseTuple(args,"sO|i", &string, &pylist, &mode))
+       if (!PyArg_ParseTuple(args,"sO|i:setChannel", &string, &pylist, &mode))
                return NULL;
        
        if (pylist->ob_type == &CListValue::Type)
index 32fd566983a025252ce07b8ddca0ec1b7a8ec252..0d35b26d6043c6cc6a38658813795da3fd79bcb2 100644 (file)
@@ -610,7 +610,7 @@ PyObject* BL_ShapeActionActuator::PySetAction(PyObject* self,
        char *string;
        int     reset = 1;
 
-       if (PyArg_ParseTuple(args,"s|i",&string, &reset))
+       if (PyArg_ParseTuple(args,"s|i:setAction",&string, &reset))
        {
                bAction *action;
                
@@ -644,7 +644,7 @@ PyObject* BL_ShapeActionActuator::PySetStart(PyObject* self,
        ShowDeprecationWarning("setStart()", "the start property");
        float start;
        
-       if (PyArg_ParseTuple(args,"f",&start))
+       if (PyArg_ParseTuple(args,"f:setStart",&start))
        {
                m_startframe = start;
        }
@@ -666,7 +666,7 @@ PyObject* BL_ShapeActionActuator::PySetEnd(PyObject* self,
        ShowDeprecationWarning("setEnd()", "the end property");
        float end;
        
-       if (PyArg_ParseTuple(args,"f",&end))
+       if (PyArg_ParseTuple(args,"f:setEnd",&end))
        {
                m_endframe = end;
        }
@@ -689,7 +689,7 @@ PyObject* BL_ShapeActionActuator::PySetBlendin(PyObject* self,
        ShowDeprecationWarning("setBlendin()", "the blendin property");
        float blendin;
        
-       if (PyArg_ParseTuple(args,"f",&blendin))
+       if (PyArg_ParseTuple(args,"f:setBlendin",&blendin))
        {
                m_blendin = blendin;
        }
@@ -713,7 +713,7 @@ PyObject* BL_ShapeActionActuator::PySetBlendtime(PyObject* self,
        ShowDeprecationWarning("setBlendtime()", "the blendTime property");
        float blendframe;
        
-       if (PyArg_ParseTuple(args,"f",&blendframe))
+       if (PyArg_ParseTuple(args,"f:setBlendtime",&blendframe))
        {
                m_blendframe = blendframe * m_blendin;
                if (m_blendframe<0.f)
@@ -741,7 +741,7 @@ PyObject* BL_ShapeActionActuator::PySetPriority(PyObject* self,
        ShowDeprecationWarning("setPriority()", "the priority property");
        int priority;
        
-       if (PyArg_ParseTuple(args,"i",&priority))
+       if (PyArg_ParseTuple(args,"i:setPriority",&priority))
        {
                m_priority = priority;
        }
@@ -778,7 +778,7 @@ PyObject* BL_ShapeActionActuator::PySetFrame(PyObject* self,
        ShowDeprecationWarning("setFrame()", "the frame property");
        float frame;
        
-       if (PyArg_ParseTuple(args,"f",&frame))
+       if (PyArg_ParseTuple(args,"f:setFrame",&frame))
        {
                m_localtime = frame;
                if (m_localtime<m_startframe)
@@ -805,7 +805,7 @@ PyObject* BL_ShapeActionActuator::PySetProperty(PyObject* self,
        ShowDeprecationWarning("setProperty()", "the property property");
        char *string;
        
-       if (PyArg_ParseTuple(args,"s",&string))
+       if (PyArg_ParseTuple(args,"s:setProperty",&string))
        {
                m_propname = string;
        }
@@ -827,7 +827,7 @@ PyObject* BL_ShapeActionActuator::PySetFrameProperty(PyObject* self,
        ShowDeprecationWarning("setFrameProperty()", "the frameProperty property");
        char *string;
        
-       if (PyArg_ParseTuple(args,"s",&string))
+       if (PyArg_ParseTuple(args,"s:setFrameProperty",&string))
        {
                m_framepropname = string;
        }
@@ -858,7 +858,7 @@ PyObject* BL_ShapeActionActuator::PySetType(PyObject* self,
        ShowDeprecationWarning("setType()", "the type property");
        short typeArg;
                                                                                                              
-    if (!PyArg_ParseTuple(args, "h", &typeArg)) {
+    if (!PyArg_ParseTuple(args, "h:setType", &typeArg)) {
         return NULL;
     }
 
index 00d1c4ca77eb2846ae400be2ca8b79f3c6d59415..a631d58d21a62f1611591e48fb684f0e3a0e6482 100644 (file)
@@ -830,7 +830,7 @@ PyObject*   CValue::ConvertKeysToPython( void )
 PyObject*      CValue::PyMake(PyObject* ignored,PyObject* args)
 {
 
-       //if (!PyArg_ParseTuple(args,"s",&name)) return NULL;
+       //if (!PyArg_ParseTuple(args,"s:make",&name)) return NULL;
        Py_RETURN_NONE;//new CValue();
 }
 */
index 945d473f93786692b084ff11c94b508a08cf3690..99f3788ad2e61124c817d8a65e7dfec077377e22 100644 (file)
@@ -204,7 +204,7 @@ PyObject* SCA_ActuatorSensor::PySetActuator(PyObject* self, PyObject* args, PyOb
        /* on the fly?                                                           */
        char *actNameArg = NULL;
 
-       if (!PyArg_ParseTuple(args, "s", &actNameArg)) {
+       if (!PyArg_ParseTuple(args, "s:setActuator", &actNameArg)) {
                return NULL;
        }
 
index 25161d21e72e6341e2b0d1afa469befad9df0163..3f08f301dc1efd17f6cf2ea11cdeaa8b3e8191d2 100644 (file)
@@ -197,7 +197,7 @@ PyObject* SCA_DelaySensor::PySetDelay(PyObject* self, PyObject* args, PyObject*
        ShowDeprecationWarning("setDelay()", "the delay property");
        int delay;
        
-       if(!PyArg_ParseTuple(args, "i", &delay)) {
+       if(!PyArg_ParseTuple(args, "i:setDelay", &delay)) {
                return NULL;
        }
        if (delay < 0) {
@@ -219,7 +219,7 @@ PyObject* SCA_DelaySensor::PySetDuration(PyObject* self, PyObject* args, PyObjec
        ShowDeprecationWarning("setDuration()", "the duration property");
        int duration;
        
-       if(!PyArg_ParseTuple(args, "i", &duration)) {
+       if(!PyArg_ParseTuple(args, "i:setDuration", &duration)) {
                return NULL;
        }
        if (duration < 0) {
@@ -240,7 +240,7 @@ PyObject* SCA_DelaySensor::PySetRepeat(PyObject* self, PyObject* args, PyObject*
        ShowDeprecationWarning("setRepeat()", "the repeat property");
        int repeat;
        
-       if(!PyArg_ParseTuple(args, "i", &repeat)) {
+       if(!PyArg_ParseTuple(args, "i:setRepeat", &repeat)) {
                return NULL;
        }
        m_repeat = (repeat != 0);
index 4b1f8b52bf55a40f768fa06d9d2c7d3b58d84a93..900975b9f15f4f8023d139bf7084a9fa925d38b8 100644 (file)
@@ -312,7 +312,7 @@ PyObject* SCA_ILogicBrick::PySetExecutePriority(PyObject* self,
 
        int priority=0;
 
-    if (!PyArg_ParseTuple(args, "i", &priority)) {
+    if (!PyArg_ParseTuple(args, "i:setExecutePriority", &priority)) {
                return NULL;
     }
        
index 80d42d8344d9d77c99769c4f86cc8720e4d3c90a..bb1f73bf7f9de1e4198897d53ff19c42d2f92c22 100644 (file)
@@ -262,7 +262,7 @@ PyObject* SCA_ISensor::PySetUsePosPulseMode(PyObject* self, PyObject* args, PyOb
 {
        ShowDeprecationWarning("setUsePosPulseMode()", "the usePosPulseMode property");
        int pyarg = 0;
-       if(!PyArg_ParseTuple(args, "i", &pyarg)) { return NULL; }
+       if(!PyArg_ParseTuple(args, "i:setUsePosPulseMode", &pyarg)) { return NULL; }
        m_pos_pulsemode = PyArgToBool(pyarg);
        Py_RETURN_NONE;
 }
@@ -292,7 +292,7 @@ PyObject* SCA_ISensor::PySetFrequency(PyObject* self, PyObject* args, PyObject*
        ShowDeprecationWarning("setFrequency()", "the frequency property");
        int pulse_frequencyArg = 0;
 
-       if(!PyArg_ParseTuple(args, "i", &pulse_frequencyArg)) {
+       if(!PyArg_ParseTuple(args, "i:setFrequency", &pulse_frequencyArg)) {
                return NULL;
        }
        
@@ -324,7 +324,7 @@ PyObject* SCA_ISensor::PySetInvert(PyObject* self, PyObject* args, PyObject* kwd
 {
        ShowDeprecationWarning("setInvert()", "the invert property");
        int pyarg = 0;
-       if(!PyArg_ParseTuple(args, "i", &pyarg)) { return NULL; }
+       if(!PyArg_ParseTuple(args, "i:setInvert", &pyarg)) { return NULL; }
        m_invert = PyArgToBool(pyarg);
        Py_RETURN_NONE;
 }
@@ -350,7 +350,7 @@ PyObject* SCA_ISensor::PySetLevel(PyObject* self, PyObject* args, PyObject* kwds
 {
        ShowDeprecationWarning("setLevel()", "the level property");
        int pyarg = 0;
-       if(!PyArg_ParseTuple(args, "i", &pyarg)) { return NULL; }
+       if(!PyArg_ParseTuple(args, "i:setLevel", &pyarg)) { return NULL; }
        m_level = PyArgToBool(pyarg);
        Py_RETURN_NONE;
 }
@@ -373,7 +373,7 @@ PyObject* SCA_ISensor::PySetUseNegPulseMode(PyObject* self, PyObject* args, PyOb
 {
        ShowDeprecationWarning("setUseNegPulseMode()", "the useNegPulseMode property");
        int pyarg = 0;
-       if(!PyArg_ParseTuple(args, "i", &pyarg)) { return NULL; }
+       if(!PyArg_ParseTuple(args, "i:setUseNegPulseMode", &pyarg)) { return NULL; }
        m_neg_pulsemode = PyArgToBool(pyarg);
        Py_RETURN_NONE;
 }
index fa61e057b2cbf96ef17873213c9536262ecda131..9cf850ceb3e1ed64030da70d00892982fb028649 100644 (file)
@@ -389,7 +389,7 @@ PyObject* SCA_JoystickSensor::PySetAxis( PyObject* self, PyObject* args ) {
        ShowDeprecationWarning("setAxis()", "the axis property");
        
        int axis,axisflag;
-       if(!PyArg_ParseTuple(args, "ii", &axis, &axisflag)){
+       if(!PyArg_ParseTuple(args, "ii:setAxis", &axis, &axisflag)){
                return NULL;
        }
        m_axis = axis;
@@ -434,7 +434,7 @@ const char SCA_JoystickSensor::SetThreshold_doc[] =
 PyObject* SCA_JoystickSensor::PySetThreshold( PyObject* self, PyObject* args ) {
        ShowDeprecationWarning("setThreshold()", "the threshold property");
        int thresh;
-       if(!PyArg_ParseTuple(args, "i", &thresh)){
+       if(!PyArg_ParseTuple(args, "i:setThreshold", &thresh)){
                return NULL;
        }
        m_precision = thresh;
@@ -504,7 +504,7 @@ PyObject* SCA_JoystickSensor::PyGetButtonStatus( PyObject* self, PyObject* args
        SCA_Joystick *joy = m_pJoystickMgr->GetJoystickDevice(m_joyindex);
        int index;
        
-       if(!PyArg_ParseTuple(args, "i", &index)){
+       if(!PyArg_ParseTuple(args, "i:getButtonStatus", &index)){
                return NULL;
        }
        if(joy && index >= 0 && index < joy->GetNumberOfButtons()) {
@@ -530,7 +530,7 @@ const char SCA_JoystickSensor::SetHat_doc[] =
 PyObject* SCA_JoystickSensor::PySetHat( PyObject* self, PyObject* args ) {
        ShowDeprecationWarning("setHat()", "the hat property");
        int hat,hatflag;
-       if(!PyArg_ParseTuple(args, "ii", &hat, &hatflag)){
+       if(!PyArg_ParseTuple(args, "ii:setHat", &hat, &hatflag)){
                return NULL;
        }
        m_hat = hat;
index ecdf889124db107ba4378ad19688df2514fa79ce..0bf19360b15103b113b4af76bf5cae2d47d781c4 100644 (file)
@@ -428,7 +428,7 @@ PyObject* SCA_KeyboardSensor::PySetKey(PyObject* self, PyObject* args, PyObject*
        ShowDeprecationWarning("setKey()", "the key property");
        int keyCode;
        
-       if(!PyArg_ParseTuple(args, "i", &keyCode)) {
+       if(!PyArg_ParseTuple(args, "i:setKey", &keyCode)) {
                return NULL;
        }
 
@@ -460,7 +460,7 @@ PyObject* SCA_KeyboardSensor::PySetHold1(PyObject* self, PyObject* args, PyObjec
        ShowDeprecationWarning("setHold1()", "the hold1 property");
        int keyCode;
 
-       if(!PyArg_ParseTuple(args, "i", &keyCode)) {
+       if(!PyArg_ParseTuple(args, "i:setHold1", &keyCode)) {
                return NULL;
        }
        
@@ -492,7 +492,7 @@ PyObject* SCA_KeyboardSensor::PySetHold2(PyObject* self, PyObject* args, PyObjec
        ShowDeprecationWarning("setHold2()", "the hold2 property");
        int keyCode;
 
-       if(!PyArg_ParseTuple(args, "i", &keyCode)) {
+       if(!PyArg_ParseTuple(args, "i:setHold2", &keyCode)) {
                return NULL;
        }
        
index fa8763a39326e3e9f2f6e98f7c1d33ee309567c8..444c616870d16d34b24fbed2d82bdb1c64fe401b 100644 (file)
@@ -279,7 +279,7 @@ PyObject* SCA_PropertyActuator::PySetProperty(PyObject* self, PyObject* args, Py
        ShowDeprecationWarning("setProperty()", "the 'property' property");
        /* Check whether the name exists first ! */
        char *nameArg;
-       if (!PyArg_ParseTuple(args, "s", &nameArg)) {
+       if (!PyArg_ParseTuple(args, "s:setProperty", &nameArg)) {
                return NULL;
        }
 
@@ -316,7 +316,7 @@ PyObject* SCA_PropertyActuator::PySetValue(PyObject* self, PyObject* args, PyObj
 {
        ShowDeprecationWarning("setValue()", "the value property");
        char *valArg;
-       if(!PyArg_ParseTuple(args, "s", &valArg)) {
+       if(!PyArg_ParseTuple(args, "s:setValue", &valArg)) {
                return NULL;            
        }
        
index 164e94b6597f21b181916da7d33c2de6737fb4c6..9ae7be16b124917e0ecf0af953b0d33b1e995f08 100644 (file)
@@ -382,7 +382,7 @@ PyObject* SCA_PropertySensor::PySetType(PyObject* self, PyObject* args, PyObject
        ShowDeprecationWarning("setType()", "the type property");
        int typeArg;
        
-       if (!PyArg_ParseTuple(args, "i", &typeArg)) {
+       if (!PyArg_ParseTuple(args, "i:setType", &typeArg)) {
                return NULL;
        }
        
@@ -417,7 +417,7 @@ PyObject* SCA_PropertySensor::PySetProperty(PyObject* self, PyObject* args, PyOb
        /* on the fly?                                                           */
        char *propNameArg = NULL;
 
-       if (!PyArg_ParseTuple(args, "s", &propNameArg)) {
+       if (!PyArg_ParseTuple(args, "s:setProperty", &propNameArg)) {
                return NULL;
        }
 
@@ -455,7 +455,7 @@ PyObject* SCA_PropertySensor::PySetValue(PyObject* self, PyObject* args, PyObjec
        /* We know that the property exists, or is NULL.                         */
        char *propValArg = NULL;
 
-       if(!PyArg_ParseTuple(args, "s", &propValArg)) {
+       if(!PyArg_ParseTuple(args, "s:setValue", &propValArg)) {
                return NULL;
        }
        STR_String oldval = m_checkpropval;
index 3c2a1d09f82399118861edc85eb5b210b44c32a7..0e6b9d1e8f18aedb1aa58b6bf4084063881d83fd 100644 (file)
@@ -205,7 +205,7 @@ PyObject* SCA_PythonController::sPyAddActiveActuator(
        
        PyObject* ob1;
        int activate;
-       if (!PyArg_ParseTuple(args, "Oi", &ob1,&activate))
+       if (!PyArg_ParseTuple(args, "Oi:addActiveActuator", &ob1,&activate))
                return NULL;
        
        SCA_IActuator* actu = LinkedActuatorFromPy(ob1);
index b1c0c7fec995f6864d81d16421dd06647cf94d85..d5d993c4ba61c80f9c65d9095c2cb02670f80cbf 100644 (file)
@@ -410,7 +410,7 @@ const char SCA_RandomActuator::SetSeed_doc[] =
 PyObject* SCA_RandomActuator::PySetSeed(PyObject* self, PyObject* args, PyObject* kwds) {
        ShowDeprecationWarning("setSeed()", "the seed property");
        long seedArg;
-       if(!PyArg_ParseTuple(args, "i", &seedArg)) {
+       if(!PyArg_ParseTuple(args, "i:setSeed", &seedArg)) {
                return NULL;
        }
        
@@ -468,7 +468,7 @@ const char SCA_RandomActuator::SetProperty_doc[] =
 PyObject* SCA_RandomActuator::PySetProperty(PyObject* self, PyObject* args, PyObject* kwds) {
        ShowDeprecationWarning("setProperty()", "the 'property' property");
        char *nameArg;
-       if (!PyArg_ParseTuple(args, "s", &nameArg)) {
+       if (!PyArg_ParseTuple(args, "s:setProperty", &nameArg)) {
                return NULL;
        }
 
@@ -500,7 +500,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setBoolConst,
 "\tSet this generator to produce a constant boolean value.\n") 
 {
        int paraArg;
-       if(!PyArg_ParseTuple(args, "i", &paraArg)) {
+       if(!PyArg_ParseTuple(args, "i:setBoolConst", &paraArg)) {
                return NULL;
        }
        
@@ -526,7 +526,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setBoolBernouilli,
 "\tReturn false value * 100%% of the time.\n")
 {
        float paraArg;
-       if(!PyArg_ParseTuple(args, "f", &paraArg)) {
+       if(!PyArg_ParseTuple(args, "f:setBoolBernouilli", &paraArg)) {
                return NULL;
        }
        
@@ -542,7 +542,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setIntConst,
 "\tAlways return value\n") 
 {
        int paraArg;
-       if(!PyArg_ParseTuple(args, "i", &paraArg)) {
+       if(!PyArg_ParseTuple(args, "i:setIntConst", &paraArg)) {
                return NULL;
        }
        
@@ -560,7 +560,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setIntUniform,
 "\tupper_bound. The boundaries are included.\n")
 {
        int paraArg1, paraArg2;
-       if(!PyArg_ParseTuple(args, "ii", &paraArg1, &paraArg2)) {
+       if(!PyArg_ParseTuple(args, "ii:setIntUniform", &paraArg1, &paraArg2)) {
                return NULL;
        }
        
@@ -579,7 +579,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setIntPoisson,
 "\tnumber of tries needed to achieve succes.\n")
 {
        float paraArg;
-       if(!PyArg_ParseTuple(args, "f", &paraArg)) {
+       if(!PyArg_ParseTuple(args, "f:setIntPoisson", &paraArg)) {
                return NULL;
        }
        
@@ -595,7 +595,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setFloatConst,
 "\tAlways return value\n")
 {
        float paraArg;
-       if(!PyArg_ParseTuple(args, "f", &paraArg)) {
+       if(!PyArg_ParseTuple(args, "f:setFloatConst", &paraArg)) {
                return NULL;
        }
        
@@ -613,7 +613,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setFloatUniform,
 "\tupper_bound.\n")
 {
        float paraArg1, paraArg2;
-       if(!PyArg_ParseTuple(args, "ff", &paraArg1, &paraArg2)) {
+       if(!PyArg_ParseTuple(args, "ff:setFloatUniform", &paraArg1, &paraArg2)) {
                return NULL;
        }
        
@@ -632,7 +632,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setFloatNormal,
 "\tdeviation from the mean is characterized by standard_deviation.\n")
 {
        float paraArg1, paraArg2;
-       if(!PyArg_ParseTuple(args, "ff", &paraArg1, &paraArg2)) {
+       if(!PyArg_ParseTuple(args, "ff:setFloatNormal", &paraArg1, &paraArg2)) {
                return NULL;
        }
        
@@ -650,7 +650,7 @@ KX_PYMETHODDEF_DOC_VARARGS(SCA_RandomActuator, setFloatNegativeExponential,
 "\tis characterized by half_life.\n")
 {
        float paraArg;
-       if(!PyArg_ParseTuple(args, "f", &paraArg)) {
+       if(!PyArg_ParseTuple(args, "f:setFloatNegativeExponential", &paraArg)) {
                return NULL;
        }
        
index fe4d88e27975414332085ae492765111deed2d05..3179c8522f9d373102769338d0bf156b88d189dc 100644 (file)
@@ -185,7 +185,7 @@ const char SCA_RandomSensor::SetSeed_doc[] =
 PyObject* SCA_RandomSensor::PySetSeed(PyObject* self, PyObject* args, PyObject* kwds) {
        ShowDeprecationWarning("setSeed()", "the seed property");
        long seedArg;
-       if(!PyArg_ParseTuple(args, "i", &seedArg)) {
+       if(!PyArg_ParseTuple(args, "i:setSeed", &seedArg)) {
                return NULL;
        }
        
index c82a9979fe1379618f91f39868ff9dd76b3095b1..aae4fd74a085a18e7d53d0bd52048ec313b424ea 100644 (file)
@@ -807,7 +807,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setSource," setSource(vertexProgram, fragmentProg
        }
        char *v,*f;
        int apply=0;
-       if( PyArg_ParseTuple(args, "ssi", &v, &f, &apply) )
+       if( PyArg_ParseTuple(args, "ssi:setSource", &v, &f, &apply) )
        {
                vertProg = v;
                fragProg = f;
@@ -890,7 +890,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setSampler, "setSampler(name, index)" )
 
        const char *uniform="";
        int index=-1;
-       if(PyArg_ParseTuple(args, "si", &uniform, &index)) 
+       if(PyArg_ParseTuple(args, "si:setSampler", &uniform, &index)) 
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1) {
@@ -915,7 +915,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setSampler, "setSampler(name, index)" )
 KX_PYMETHODDEF_DOC( BL_Shader, setNumberOfPasses, "setNumberOfPasses( max-pass )" )
 {
        int pass = 1;
-       if(!PyArg_ParseTuple(args, "i", &pass))
+       if(!PyArg_ParseTuple(args, "i:setNumberOfPasses", &pass))
                return NULL;
 
        mPass = 1;
@@ -931,7 +931,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform1f, "setUniform1f(name, fx)" )
 
        const char *uniform="";
        float value=0;
-       if(PyArg_ParseTuple(args, "sf", &uniform, &value ))
+       if(PyArg_ParseTuple(args, "sf:setUniform1f", &uniform, &value ))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -955,7 +955,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform2f , "setUniform2f(name, fx, fy)")
        }
        const char *uniform="";
        float array[2]={ 0,0 };
-       if(PyArg_ParseTuple(args, "sff", &uniform, &array[0],&array[1] ))
+       if(PyArg_ParseTuple(args, "sff:setUniform2f", &uniform, &array[0],&array[1] ))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -979,7 +979,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform3f, "setUniform3f(name, fx,fy,fz) ")
        }
        const char *uniform="";
        float array[3]={0,0,0};
-       if(PyArg_ParseTuple(args, "sfff", &uniform, &array[0],&array[1],&array[2]))
+       if(PyArg_ParseTuple(args, "sfff:setUniform3f", &uniform, &array[0],&array[1],&array[2]))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1004,7 +1004,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform4f, "setUniform4f(name, fx,fy,fz, fw) "
        }
        const char *uniform="";
        float array[4]={0,0,0,0};
-       if(PyArg_ParseTuple(args, "sffff", &uniform, &array[0],&array[1],&array[2], &array[3]))
+       if(PyArg_ParseTuple(args, "sffff:setUniform4f", &uniform, &array[0],&array[1],&array[2], &array[3]))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1028,7 +1028,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform1i, "setUniform1i(name, ix)" )
        }
        const char *uniform="";
        int value=0;
-       if(PyArg_ParseTuple(args, "si", &uniform, &value ))
+       if(PyArg_ParseTuple(args, "si:setUniform1i", &uniform, &value ))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1052,7 +1052,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform2i , "setUniform2i(name, ix, iy)")
        }
        const char *uniform="";
        int array[2]={ 0,0 };
-       if(PyArg_ParseTuple(args, "sii", &uniform, &array[0],&array[1] ))
+       if(PyArg_ParseTuple(args, "sii:setUniform2i", &uniform, &array[0],&array[1] ))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1077,7 +1077,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform3i, "setUniform3i(name, ix,iy,iz) ")
 
        const char *uniform="";
        int array[3]={0,0,0};
-       if(PyArg_ParseTuple(args, "siii", &uniform, &array[0],&array[1],&array[2]))
+       if(PyArg_ParseTuple(args, "siii:setUniform3i", &uniform, &array[0],&array[1],&array[2]))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1100,7 +1100,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniform4i, "setUniform4i(name, ix,iy,iz, iw) "
        }
        const char *uniform="";
        int array[4]={0,0,0, 0};
-       if(PyArg_ParseTuple(args, "siiii", &uniform, &array[0],&array[1],&array[2], &array[3] ))
+       if(PyArg_ParseTuple(args, "siiii:setUniform4i", &uniform, &array[0],&array[1],&array[2], &array[3] ))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1125,7 +1125,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformfv , "setUniformfv( float (list2 or lis
        PyObject *listPtr =0;
        float array_data[4] = {0.f,0.f,0.f,0.f};
 
-       if(PyArg_ParseTuple(args, "sO", &uniform, &listPtr))
+       if(PyArg_ParseTuple(args, "sO:setUniformfv", &uniform, &listPtr))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1194,7 +1194,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformiv, "setUniformiv( int (list2 or list3
        PyObject *listPtr =0;
        int array_data[4] = {0,0,0,0};
 
-       if(PyArg_ParseTuple(args, "sO", &uniform, &listPtr))
+       if(PyArg_ParseTuple(args, "sO:setUniformiv", &uniform, &listPtr))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1273,7 +1273,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformMatrix4,
        const char *uniform="";
        PyObject *matrix=0;
        int transp=1; // MT_ is row major so transpose by default....
-       if(PyArg_ParseTuple(args, "sO|i",&uniform, &matrix,&transp))
+       if(PyArg_ParseTuple(args, "sO|i:setUniformMatrix4",&uniform, &matrix,&transp))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1311,7 +1311,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformMatrix3,
        const char *uniform="";
        PyObject *matrix=0;
        int transp=1; // MT_ is row major so transpose by default....
-       if(PyArg_ParseTuple(args, "sO|i",&uniform, &matrix,&transp))
+       if(PyArg_ParseTuple(args, "sO|i:setUniformMatrix3",&uniform, &matrix,&transp))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
@@ -1338,7 +1338,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setAttrib, "setAttrib(enum)" )
                Py_RETURN_NONE;
        }
        int attr=0;
-       if(PyArg_ParseTuple(args, "i", &attr )) {
+       if(PyArg_ParseTuple(args, "i:setAttrib", &attr )) {
                if(mShader==0) {
                        PyErr_Format(PyExc_ValueError, "invalid shader object");
                        return NULL;
@@ -1360,7 +1360,7 @@ KX_PYMETHODDEF_DOC( BL_Shader, setUniformDef, "setUniformDef(name, enum)" )
 
        const char *uniform="";
        int nloc=0;
-       if(PyArg_ParseTuple(args, "si",&uniform, &nloc))
+       if(PyArg_ParseTuple(args, "si:setUniformDef",&uniform, &nloc))
        {
                int loc = GetUniformLocation(uniform);
                if(loc != -1)
index 72edde6ef249cca62d21c17113177fb502ef3303..d6d596927454ca29cbbdb823b6ee5c3d2462b9d8 100644 (file)
@@ -171,7 +171,7 @@ PyObject* KX_NetworkMessageActuator::PySetToPropName(
        ShowDeprecationWarning("setToProp()", "the propName property");
     char* ToPropName;
 
-       if (PyArg_ParseTuple(args, "s", &ToPropName)) {
+       if (PyArg_ParseTuple(args, "s:setToPropName", &ToPropName)) {
             m_toPropName = ToPropName;
        }
        else {
@@ -190,7 +190,7 @@ PyObject* KX_NetworkMessageActuator::PySetSubject(
        ShowDeprecationWarning("setSubject()", "the subject property");
     char* Subject;
 
-       if (PyArg_ParseTuple(args, "s", &Subject)) {
+       if (PyArg_ParseTuple(args, "s:setSubject", &Subject)) {
             m_subject = Subject;
        }
        else {
@@ -209,7 +209,7 @@ PyObject* KX_NetworkMessageActuator::PySetBodyType(
        ShowDeprecationWarning("setBodyType()", "the usePropBody property");
     int BodyType;
 
-       if (PyArg_ParseTuple(args, "i", &BodyType)) {
+       if (PyArg_ParseTuple(args, "i:setBodyType", &BodyType)) {
                m_bPropBody = (BodyType != 0);
        }
        else {
@@ -228,7 +228,7 @@ PyObject* KX_NetworkMessageActuator::PySetBody(
        ShowDeprecationWarning("setBody()", "the body property");
     char* Body;
 
-       if (PyArg_ParseTuple(args, "s", &Body)) {
+       if (PyArg_ParseTuple(args, "s:setBody", &Body)) {
             m_body = Body;
        }
        else {
index bd137196ac6add5737d2d2c5740debc9286f31ad..0e417dde5d223eb7b2d71ef64c58dc51e34553a3 100644 (file)
@@ -897,7 +897,7 @@ static unsigned int GL_array[11] = {
 KX_PYMETHODDEF_DOC( KX_BlenderMaterial, setBlending , "setBlending( GameLogic.src, GameLogic.dest)")
 {
        unsigned int b[2];
-       if(PyArg_ParseTuple(args, "ii", &b[0], &b[1]))
+       if(PyArg_ParseTuple(args, "ii:setBlending", &b[0], &b[1]))
        {
                bool value_found[2] = {false, false};
                for(int i=0; i<11; i++)
index 8e889fb4129731998660c8bad0d19fa4de9592c9..c3d2865615918f9c6f1a104c1ca4138d7bc7a693 100644 (file)
@@ -293,7 +293,7 @@ PyObject* KX_CDActuator::PySetGain(PyObject* self, PyObject* args, PyObject* kwd
 {
        float gain = 1.0;
        ShowDeprecationWarning("setGain()", "the volume property");
-       if (!PyArg_ParseTuple(args, "f", &gain))
+       if (!PyArg_ParseTuple(args, "f:setGain", &gain))
                return NULL;
        
        SND_CDObject::Instance()->SetGain(gain);
index 339abb73531938efbfa9c4f9917730285f1c2dc0..8032e939a50be45513a0a3b675d065cc1aafe850 100644 (file)
@@ -562,7 +562,7 @@ KX_PYMETHODDEF_DOC_VARARGS(KX_Camera, sphereInsideFrustum,
 {
        PyObject *pycenter;
        float radius;
-       if (PyArg_ParseTuple(args, "Of", &pycenter, &radius))
+       if (PyArg_ParseTuple(args, "Of:sphereInsideFrustum", &pycenter, &radius))
        {
                MT_Point3 center;
                if (PyVecTo(pycenter, center))
index 4db24a6e36515a5e8a918cf01b4ba4f5158e8abe..0118e4907738376c0fac6575f80c29dcecf133d7 100644 (file)
@@ -440,7 +440,7 @@ PyObject* KX_CameraActuator::PyGetObject(PyObject* self, PyObject* args)
        
        ShowDeprecationWarning("getObject()", "the object property");
        
-       if (!PyArg_ParseTuple(args, "|i", &ret_name_only))
+       if (!PyArg_ParseTuple(args, "|i:getObject", &ret_name_only))
                return NULL;
        
        if (!m_ob)
@@ -496,7 +496,7 @@ PyObject* KX_CameraActuator::PySetMin(PyObject* self,
 {
        ShowDeprecationWarning("setMin()", "the min property");
        float min;
-       if(PyArg_ParseTuple(args,"f", &min))
+       if(PyArg_ParseTuple(args,"f:setMin", &min))
        {
                m_minHeight = min;
                Py_RETURN_NONE;
@@ -524,7 +524,7 @@ PyObject* KX_CameraActuator::PySetMax(PyObject* self,
 {
        ShowDeprecationWarning("getMax()", "the max property");
        float max;
-       if(PyArg_ParseTuple(args,"f", &max))
+       if(PyArg_ParseTuple(args,"f:setMax", &max))
        {
                m_maxHeight = max;
                Py_RETURN_NONE;
@@ -552,7 +552,7 @@ PyObject* KX_CameraActuator::PySetHeight(PyObject* self,
 {
        ShowDeprecationWarning("getHeight()", "the height property");
        float height;
-       if(PyArg_ParseTuple(args,"f", &height))
+       if(PyArg_ParseTuple(args,"f:setHeight", &height))
        {
                m_height = height;
                Py_RETURN_NONE;
@@ -570,7 +570,7 @@ PyObject* KX_CameraActuator::PySetXY(PyObject* self,
 {
        ShowDeprecationWarning("setXY()", "the xy property");
        int value;
-       if(PyArg_ParseTuple(args,"i", &value))
+       if(PyArg_ParseTuple(args,"i:setXY", &value))
        {
                m_x = value != 0;
                Py_RETURN_NONE;
index b41435e71a1b4851b8b39ec055d074cb75a4de61..3b8b4a93fd6a709830902398886bdaa7794420bb 100644 (file)
@@ -670,7 +670,7 @@ PyObject* KX_ConstraintActuator::PySetDamp(PyObject* self,
                                                                                   PyObject* kwds) {
        ShowDeprecationWarning("setDamp()", "the damp property");
        int dampArg;
-       if(!PyArg_ParseTuple(args, "i", &dampArg)) {
+       if(!PyArg_ParseTuple(args, "i:setDamp", &dampArg)) {
                return NULL;            
        }
        
@@ -699,7 +699,7 @@ PyObject* KX_ConstraintActuator::PySetRotDamp(PyObject* self,
                                                                                      PyObject* kwds) {
        ShowDeprecationWarning("setRotDamp()", "the rotDamp property");
        int dampArg;
-       if(!PyArg_ParseTuple(args, "i", &dampArg)) {
+       if(!PyArg_ParseTuple(args, "i:setRotDamp", &dampArg)) {
                return NULL;            
        }
        
@@ -730,7 +730,7 @@ PyObject* KX_ConstraintActuator::PySetDirection(PyObject* self,
        MT_Scalar len;
        MT_Vector3 dir;
 
-       if(!PyArg_ParseTuple(args, "(fff)", &x, &y, &z)) {
+       if(!PyArg_ParseTuple(args, "(fff):setDirection", &x, &y, &z)) {
                return NULL;            
        }
        dir[0] = x;
@@ -777,7 +777,7 @@ PyObject* KX_ConstraintActuator::PySetOption(PyObject* self,
                                                                                     PyObject* kwds) {
        ShowDeprecationWarning("setOption()", "the option property");
        int option;
-       if(!PyArg_ParseTuple(args, "i", &option)) {
+       if(!PyArg_ParseTuple(args, "i:setOption", &option)) {
                return NULL;            
        }
        
@@ -806,7 +806,7 @@ PyObject* KX_ConstraintActuator::PySetTime(PyObject* self,
                                                                                   PyObject* kwds) {
        ShowDeprecationWarning("setTime()", "the time property");
        int t;
-       if(!PyArg_ParseTuple(args, "i", &t)) {
+       if(!PyArg_ParseTuple(args, "i:setTime", &t)) {
                return NULL;            
        }
        
@@ -836,7 +836,7 @@ PyObject* KX_ConstraintActuator::PySetProperty(PyObject* self,
                                                                                       PyObject* kwds) {
        ShowDeprecationWarning("setProperty()", "the 'property' property");
        char *property;
-       if (!PyArg_ParseTuple(args, "s", &property)) {
+       if (!PyArg_ParseTuple(args, "s:setProperty", &property)) {
                return NULL;
        }
        if (property == NULL) {
@@ -872,7 +872,7 @@ PyObject* KX_ConstraintActuator::PySetMin(PyObject* self,
                                                                                  PyObject* kwds) {
        ShowDeprecationWarning("setMin() or setDistance()", "the min or distance property");
        float minArg;
-       if(!PyArg_ParseTuple(args, "f", &minArg)) {
+       if(!PyArg_ParseTuple(args, "f:setMin", &minArg)) {
                return NULL;            
        }
 
@@ -919,7 +919,7 @@ PyObject* KX_ConstraintActuator::PySetMax(PyObject* self,
                                                                                  PyObject* kwds){
        ShowDeprecationWarning("setMax() or setRayLength()", "the max or rayLength property");
        float maxArg;
-       if(!PyArg_ParseTuple(args, "f", &maxArg)) {
+       if(!PyArg_ParseTuple(args, "f:setMax", &maxArg)) {
                return NULL;            
        }
 
@@ -974,7 +974,7 @@ PyObject* KX_ConstraintActuator::PySetLimit(PyObject* self,
                                                                                        PyObject* kwds) {
        ShowDeprecationWarning("setLimit()", "the limit property");
        int locrotArg;
-       if(!PyArg_ParseTuple(args, "i", &locrotArg)) {
+       if(!PyArg_ParseTuple(args, "i:setLimit", &locrotArg)) {
                return NULL;            
        }
        
index c9060486d44f31c47de3c8e9656543591ca3eea2..cef874900a64e210ab226d0543c217ec56333860 100644 (file)
@@ -286,7 +286,7 @@ PyObject* KX_GameActuator::PySetFile(PyObject* self, PyObject* args, PyObject* k
 
        ShowDeprecationWarning("setFile()", "the file property");
        
-       if (!PyArg_ParseTuple(args, "s", &new_file))
+       if (!PyArg_ParseTuple(args, "s:setFile", &new_file))
        {
                return NULL;
        }
index 1dc5471e77a58881df099a62a15042ab3dd8ea61..644f8ac81132fcf7ef8ba08a801999c9cfb70729 100644 (file)
@@ -503,7 +503,7 @@ PyObject* KX_IpoActuator::PySet(PyObject* self,
        int forceToggle;
        int modenum;
        int startFrame, stopFrame;
-       if(!PyArg_ParseTuple(args, "siii", &mode, &startFrame, 
+       if(!PyArg_ParseTuple(args, "siii:set", &mode, &startFrame, 
                                                 &stopFrame, &forceToggle)) {
                return NULL;
        }
@@ -542,7 +542,7 @@ PyObject* KX_IpoActuator::PySetProperty(PyObject* self,
        /* mode is implicit here, but not supported yet... */
        /* args: property */
        char *propertyName;
-       if(!PyArg_ParseTuple(args, "s", &propertyName)) {
+       if(!PyArg_ParseTuple(args, "s:setProperty", &propertyName)) {
                return NULL;
        }
 
@@ -563,7 +563,7 @@ PyObject* KX_IpoActuator::PySetStart(PyObject* self,
        ShowDeprecationWarning("setStart()", "the startFrame property");
 
        float startArg;
-       if(!PyArg_ParseTuple(args, "f", &startArg)) {
+       if(!PyArg_ParseTuple(args, "f:setStart", &startArg)) {
                return NULL;            
        }
        
@@ -590,7 +590,7 @@ PyObject* KX_IpoActuator::PySetEnd(PyObject* self,
                                                                   PyObject* kwds) {
        ShowDeprecationWarning("setEnd()", "the endFrame property");
        float endArg;
-       if(!PyArg_ParseTuple(args, "f", &endArg)) {
+       if(!PyArg_ParseTuple(args, "f:setEnd", &endArg)) {
                return NULL;            
        }
        
@@ -618,7 +618,7 @@ PyObject* KX_IpoActuator::PySetIpoAsForce(PyObject* self,
        ShowDeprecationWarning("setIpoAsForce()", "the useIpoAsForce property");
        int boolArg;
        
-       if (!PyArg_ParseTuple(args, "i", &boolArg)) {
+       if (!PyArg_ParseTuple(args, "i:setIpoAsForce", &boolArg)) {
                return NULL;
        }
 
@@ -648,7 +648,7 @@ PyObject* KX_IpoActuator::PySetIpoAdd(PyObject* self,
        ShowDeprecationWarning("setIpoAdd()", "the useIpoAdd property");
        int boolArg;
        
-       if (!PyArg_ParseTuple(args, "i", &boolArg)) {
+       if (!PyArg_ParseTuple(args, "i:setIpoAdd", &boolArg)) {
                return NULL;
        }
 
@@ -678,7 +678,7 @@ PyObject* KX_IpoActuator::PySetType(PyObject* self,
        ShowDeprecationWarning("setType()", "the type property");
        int typeArg;
        
-       if (!PyArg_ParseTuple(args, "i", &typeArg)) {
+       if (!PyArg_ParseTuple(args, "i:setType", &typeArg)) {
                return NULL;
        }
        
@@ -711,7 +711,7 @@ PyObject* KX_IpoActuator::PySetForceIpoActsLocal(PyObject* self,
        ShowDeprecationWarning("setForceIpoActsLocal()", "the useIpoLocal property");
        int boolArg;
        
-       if (!PyArg_ParseTuple(args, "i", &boolArg)) {
+       if (!PyArg_ParseTuple(args, "i:setForceIpoActsLocal", &boolArg)) {
                return NULL;
        }
 
index 7b58c8b288ae5432bc0ccd9e398b5d6df92f25a0..bcda4a8e3c48c3ede1e6b5396214c0d25321addd 100644 (file)
@@ -150,7 +150,7 @@ PyObject* KX_MeshProxy::PyGetMaterialName(PyObject* self,
     int matid= 1;
        STR_String matname;
 
-       if (PyArg_ParseTuple(args,"i",&matid))
+       if (PyArg_ParseTuple(args,"i:getMaterialName",&matid))
        {
                matname = m_meshobj->GetMaterialName(matid);
        }
@@ -170,7 +170,7 @@ PyObject* KX_MeshProxy::PyGetTextureName(PyObject* self,
     int matid= 1;
        STR_String matname;
 
-       if (PyArg_ParseTuple(args,"i",&matid))
+       if (PyArg_ParseTuple(args,"i:getTextureName",&matid))
        {
                matname = m_meshobj->GetTextureName(matid);
        }
@@ -190,7 +190,7 @@ PyObject* KX_MeshProxy::PyGetVertexArrayLength(PyObject* self,
        int length = 0;
 
        
-       if (!PyArg_ParseTuple(args,"i",&matid))
+       if (!PyArg_ParseTuple(args,"i:getVertexArrayLength",&matid))
                return NULL;
        
 
@@ -215,7 +215,7 @@ PyObject* KX_MeshProxy::PyGetVertex(PyObject* self,
        int matindex= 1;
        PyObject* vertexob = NULL;
 
-       if (PyArg_ParseTuple(args,"ii",&matindex,&vertexindex))
+       if (PyArg_ParseTuple(args,"ii:getVertex",&matindex,&vertexindex))
        {
                RAS_TexVert* vertex = m_meshobj->GetVertex(matindex,vertexindex);
                if (vertex)
@@ -238,7 +238,7 @@ PyObject* KX_MeshProxy::PyGetPolygon(PyObject* self,
     int polyindex= 1;
        PyObject* polyob = NULL;
 
-       if (!PyArg_ParseTuple(args,"i",&polyindex))
+       if (!PyArg_ParseTuple(args,"i:getPolygon",&polyindex))
                return NULL;
        
        if (polyindex<0 || polyindex >= m_meshobj->NumPolygons())
index a343eeb71ccd065f9a6ac73395e3183d3e37daa9..0ea051723dcda60682a94fa8c622b4723b6ba809 100644 (file)
@@ -362,7 +362,7 @@ PyObject* KX_ObjectActuator::PySetForce(PyObject* self,
 {
        float vecArg[3];
        int bToggle = 0;
-       if (!PyArg_ParseTuple(args, "fffi", &vecArg[0], &vecArg[1], 
+       if (!PyArg_ParseTuple(args, "fffi:setForce", &vecArg[0], &vecArg[1], 
                                                  &vecArg[2], &bToggle)) {
                return NULL;
        }
@@ -391,7 +391,7 @@ PyObject* KX_ObjectActuator::PySetTorque(PyObject* self,
 {
        float vecArg[3];
        int bToggle = 0;
-       if (!PyArg_ParseTuple(args, "fffi", &vecArg[0], &vecArg[1], 
+       if (!PyArg_ParseTuple(args, "fffi:setTorque", &vecArg[0], &vecArg[1], 
                                                  &vecArg[2], &bToggle)) {
                return NULL;
        }
@@ -420,7 +420,7 @@ PyObject* KX_ObjectActuator::PySetDLoc(PyObject* self,
 {
        float vecArg[3];
        int bToggle = 0;
-       if(!PyArg_ParseTuple(args, "fffi", &vecArg[0], &vecArg[1], 
+       if(!PyArg_ParseTuple(args, "fffi:setDLoc", &vecArg[0], &vecArg[1], 
                                                 &vecArg[2], &bToggle)) {
                return NULL;
        }
@@ -449,7 +449,7 @@ PyObject* KX_ObjectActuator::PySetDRot(PyObject* self,
 {
        float vecArg[3];
        int bToggle = 0;
-       if (!PyArg_ParseTuple(args, "fffi", &vecArg[0], &vecArg[1], 
+       if (!PyArg_ParseTuple(args, "fffi:setDRot", &vecArg[0], &vecArg[1], 
                                                  &vecArg[2], &bToggle)) {
                return NULL;
        }
@@ -477,7 +477,7 @@ PyObject* KX_ObjectActuator::PySetLinearVelocity(PyObject* self,
                                                                                                 PyObject* kwds) {
        float vecArg[3];
        int bToggle = 0;
-       if (!PyArg_ParseTuple(args, "fffi", &vecArg[0], &vecArg[1], 
+       if (!PyArg_ParseTuple(args, "fffi:setLinearVelocity", &vecArg[0], &vecArg[1], 
                                                  &vecArg[2], &bToggle)) {
                return NULL;
        }
@@ -505,7 +505,7 @@ PyObject* KX_ObjectActuator::PySetAngularVelocity(PyObject* self,
                                                                                                  PyObject* kwds) {
        float vecArg[3];
        int bToggle = 0;
-       if (!PyArg_ParseTuple(args, "fffi", &vecArg[0], &vecArg[1], 
+       if (!PyArg_ParseTuple(args, "fffi:setAngularVelocity", &vecArg[0], &vecArg[1], 
                                                  &vecArg[2], &bToggle)) {
                return NULL;
        }
@@ -520,7 +520,7 @@ PyObject* KX_ObjectActuator::PySetDamping(PyObject* self,
                                                                                  PyObject* args, 
                                                                                  PyObject* kwds) {
        int damping = 0;
-       if (!PyArg_ParseTuple(args, "i", &damping) || damping < 0 || damping > 1000) {
+       if (!PyArg_ParseTuple(args, "i:setDamping", &damping) || damping < 0 || damping > 1000) {
                return NULL;
        }
        m_damping = damping;
@@ -549,7 +549,7 @@ PyObject* KX_ObjectActuator::PySetForceLimitX(PyObject* self,
 {
        float vecArg[2];
        int bToggle = 0;
-       if(!PyArg_ParseTuple(args, "ffi", &vecArg[0], &vecArg[1], &bToggle)) {
+       if(!PyArg_ParseTuple(args, "ffi:setForceLimitX", &vecArg[0], &vecArg[1], &bToggle)) {
                return NULL;
        }
        m_drot[0] = vecArg[0];
@@ -576,7 +576,7 @@ PyObject* KX_ObjectActuator::PySetForceLimitY(PyObject* self,
 {
        float vecArg[2];
        int bToggle = 0;
-       if(!PyArg_ParseTuple(args, "ffi", &vecArg[0], &vecArg[1], &bToggle)) {
+       if(!PyArg_ParseTuple(args, "ffi:setForceLimitY", &vecArg[0], &vecArg[1], &bToggle)) {
                return NULL;
        }
        m_drot[1] = vecArg[0];
@@ -603,7 +603,7 @@ PyObject* KX_ObjectActuator::PySetForceLimitZ(PyObject* self,
 {
        float vecArg[2];
        int bToggle = 0;
-       if(!PyArg_ParseTuple(args, "ffi", &vecArg[0], &vecArg[1], &bToggle)) {
+       if(!PyArg_ParseTuple(args, "ffi:setForceLimitZ", &vecArg[0], &vecArg[1], &bToggle)) {
                return NULL;
        }
        m_drot[2] = vecArg[0];
@@ -629,7 +629,7 @@ PyObject* KX_ObjectActuator::PySetPID(PyObject* self,
                                                                          PyObject* kwds)
 {
        float vecArg[3];
-       if (!PyArg_ParseTuple(args, "fff", &vecArg[0], &vecArg[1], &vecArg[2])) {
+       if (!PyArg_ParseTuple(args, "fff:setPID", &vecArg[0], &vecArg[1], &vecArg[2])) {
                return NULL;
        }
        m_torque.setValue(vecArg);
index 32c279b2be1c962e925aedf298cd98cdcc981467..d0d441e2c1c4d8500c954056a629213ac8e1610e 100644 (file)
@@ -252,7 +252,7 @@ PyObject* KX_ParentActuator::PyGetObject(PyObject* self, PyObject* args)
        
        ShowDeprecationWarning("getObject()", "the object property");
        
-       if (!PyArg_ParseTuple(args, "|i", &ret_name_only))
+       if (!PyArg_ParseTuple(args, "|i:getObject", &ret_name_only))
                return NULL;
        
        if (!m_ob)
index 3bef85e7f93fbe3a3aff6ddfae577938aa50d48d..9da861936224298a7241a9547de9de371a38fdfa 100644 (file)
@@ -56,7 +56,7 @@ PyObject* KX_PhysicsObjectWrapper::PySetPosition(PyObject* self,
                                                                                        PyObject* kwds)
 {
        float x,y,z;
-       if (PyArg_ParseTuple(args,"fff",&x,&y,&z))
+       if (PyArg_ParseTuple(args,"fff:setPosition",&x,&y,&z))
        {
                m_ctrl->setPosition(x,y,z);
        }
@@ -73,7 +73,7 @@ PyObject* KX_PhysicsObjectWrapper::PySetLinearVelocity(PyObject* self,
 {
        float x,y,z;
        int local;
-       if (PyArg_ParseTuple(args,"fffi",&x,&y,&z,&local))
+       if (PyArg_ParseTuple(args,"fffi:setLinearVelocity",&x,&y,&z,&local))
        {
                m_ctrl->SetLinearVelocity(x,y,z,local != 0);
        }
@@ -89,7 +89,7 @@ PyObject* KX_PhysicsObjectWrapper::PySetAngularVelocity(PyObject* self,
 {
        float x,y,z;
        int local;
-       if (PyArg_ParseTuple(args,"fffi",&x,&y,&z,&local))
+       if (PyArg_ParseTuple(args,"fffi:setAngularVelocity",&x,&y,&z,&local))
        {
                m_ctrl->SetAngularVelocity(x,y,z,local != 0);
        }
@@ -104,7 +104,7 @@ PyObject*   KX_PhysicsObjectWrapper::PySetActive(PyObject* self,
                                                                                        PyObject* kwds)
 {
        int active;
-       if (PyArg_ParseTuple(args,"i",&active))
+       if (PyArg_ParseTuple(args,"i:setActive",&active))
        {
                m_ctrl->SetActive(active!=0);
        }
index 39eb622586418676099ddbb374d9e81893b30ae7..1e6f49ead2e59dff2c69c8440b8a5828704d3c33 100644 (file)
@@ -238,7 +238,7 @@ KX_PYMETHODDEF_DOC(KX_PolyProxy, getVertexIndex,
 "Note: getVertexIndex(3) on a triangle polygon returns 0\n")
 {
        int index;
-       if (!PyArg_ParseTuple(args,"i",&index))
+       if (!PyArg_ParseTuple(args,"i:getVertexIndex",&index))
        {
                return NULL;
        }
index e66d9d60db82e6cfa50e3ccc046c99579bab6564..56a1daa754406ee2d03fc3a139f54178c620e9c1 100644 (file)
@@ -244,7 +244,7 @@ int KX_PolygonMaterial::py_setattro(PyObject *attr, PyObject *value)
 KX_PYMETHODDEF_DOC(KX_PolygonMaterial, setCustomMaterial, "setCustomMaterial(material)")
 {
        PyObject *material;
-       if (PyArg_ParseTuple(args, "O", &material))
+       if (PyArg_ParseTuple(args, "O:setCustomMaterial", &material))
        {
                if (m_pymaterial) {
                        Py_DECREF(m_pymaterial);
@@ -260,7 +260,7 @@ KX_PYMETHODDEF_DOC(KX_PolygonMaterial, setCustomMaterial, "setCustomMaterial(mat
 KX_PYMETHODDEF_DOC(KX_PolygonMaterial, updateTexture, "updateTexture(tface, rasty)")
 {
        PyObject *pyrasty, *pytface;
-       if (PyArg_ParseTuple(args, "O!O!", &PyCObject_Type, &pytface, &PyCObject_Type, &pyrasty))
+       if (PyArg_ParseTuple(args, "O!O!:updateTexture", &PyCObject_Type, &pytface, &PyCObject_Type, &pyrasty))
        {
                MTFace *tface = (MTFace*) PyCObject_AsVoidPtr(pytface);
                RAS_IRasterizer *rasty = (RAS_IRasterizer*) PyCObject_AsVoidPtr(pyrasty);
@@ -276,7 +276,7 @@ KX_PYMETHODDEF_DOC(KX_PolygonMaterial, updateTexture, "updateTexture(tface, rast
 KX_PYMETHODDEF_DOC(KX_PolygonMaterial, setTexture, "setTexture(tface)")
 {
        PyObject *pytface;
-       if (PyArg_ParseTuple(args, "O!", &PyCObject_Type, &pytface))
+       if (PyArg_ParseTuple(args, "O!:setTexture", &PyCObject_Type, &pytface))
        {
                MTFace *tface = (MTFace*) PyCObject_AsVoidPtr(pytface);
                GPU_set_tpage(tface);
@@ -289,7 +289,7 @@ KX_PYMETHODDEF_DOC(KX_PolygonMaterial, setTexture, "setTexture(tface)")
 KX_PYMETHODDEF_DOC(KX_PolygonMaterial, activate, "activate(rasty, cachingInfo)")
 {
        PyObject *pyrasty, *pyCachingInfo;
-       if (PyArg_ParseTuple(args, "O!O!", &PyCObject_Type, &pyrasty, &PyCObject_Type, &pyCachingInfo))
+       if (PyArg_ParseTuple(args, "O!O!:activate", &PyCObject_Type, &pyrasty, &PyCObject_Type, &pyCachingInfo))
        {
                RAS_IRasterizer *rasty = static_cast<RAS_IRasterizer*>(PyCObject_AsVoidPtr(pyrasty));
                TCachingInfo *cachingInfo = static_cast<TCachingInfo*>(PyCObject_AsVoidPtr(pyCachingInfo));
index a59d8417f262fd81061f29d2c01241c1e22e61f0..65b654ccba40c4e659c6533b8dba64dfe69e8905 100644 (file)
@@ -341,7 +341,7 @@ PyObject* KX_SCA_AddObjectActuator::PyGetObject(PyObject* self, PyObject* args)
        
        ShowDeprecationWarning("getObject()", "the object property");
        
-       if (!PyArg_ParseTuple(args, "|i", &ret_name_only))
+       if (!PyArg_ParseTuple(args, "|i:getObject", &ret_name_only))
                return NULL;
        
        if (!m_OriginalObject)
@@ -389,7 +389,7 @@ PyObject* KX_SCA_AddObjectActuator::PySetLinearVelocity(PyObject* self, PyObject
        ShowDeprecationWarning("setLinearVelocity()", "the linearVelocity property");
        
        float vecArg[3];
-       if (!PyArg_ParseTuple(args, "fff", &vecArg[0], &vecArg[1], &vecArg[2]))
+       if (!PyArg_ParseTuple(args, "fff:setLinearVelocity", &vecArg[0], &vecArg[1], &vecArg[2]))
                return NULL;
 
        m_linear_velocity[0] = vecArg[0];
@@ -432,7 +432,7 @@ PyObject* KX_SCA_AddObjectActuator::PySetAngularVelocity(PyObject* self, PyObjec
        ShowDeprecationWarning("setAngularVelocity()", "the angularVelocity property");
        
        float vecArg[3];
-       if (!PyArg_ParseTuple(args, "fff", &vecArg[0], &vecArg[1], &vecArg[2]))
+       if (!PyArg_ParseTuple(args, "fff:setAngularVelocity", &vecArg[0], &vecArg[1], &vecArg[2]))
                return NULL;
 
        m_angular_velocity[0] = vecArg[0];
index aaa87e407baf8d97dd31bfc7c1e284508f4d2c26..e03b153d813f36a533a5ce6e66b4c48480837c62 100644 (file)
@@ -116,7 +116,7 @@ KX_PYMETHODDEF_DOC(KX_SCA_DynamicActuator, setOperation,
        ShowDeprecationWarning("setOperation()", "the operation property");
        int dyn_operation;
        
-       if (!PyArg_ParseTuple(args, "i", &dyn_operation))
+       if (!PyArg_ParseTuple(args, "i:setOperation", &dyn_operation))
        {
                return NULL;    
        }
index 0bd7d7270e16c6c27ef01096072a8119299dc795..30fed561519a1a12584faa42e99ba409e14a7b8c 100644 (file)
@@ -1697,7 +1697,7 @@ KX_PYMETHODDEF_DOC(KX_Scene, addObject,
 
        int time = 0;
 
-       if (!PyArg_ParseTuple(args, "OO|i", &pyob, &pyother, &time))
+       if (!PyArg_ParseTuple(args, "OO|i:addObject", &pyob, &pyother, &time))
                return NULL;
 
        if (!ConvertPythonToGameObject(pyob, &ob, false)
index 1753c6570e9dfc6004878b78cf70274a949bea24..2d3022a68f7c0894011ba448dff0e282892d75aa 100644 (file)
@@ -344,7 +344,7 @@ PyObject* KX_SceneActuator::PySetUseRestart(PyObject* self,
        ShowDeprecationWarning("setUseRestart()", "(no replacement)");
        int boolArg;
        
-       if (!PyArg_ParseTuple(args, "i", &boolArg))
+       if (!PyArg_ParseTuple(args, "i:setUseRestart", &boolArg))
        {
                return NULL;
        }
@@ -383,7 +383,7 @@ PyObject* KX_SceneActuator::PySetScene(PyObject* self,
        /* one argument: a scene, ignore the rest */
        char *scene_name;
 
-       if(!PyArg_ParseTuple(args, "s", &scene_name))
+       if(!PyArg_ParseTuple(args, "s:setScene", &scene_name))
        {
                return NULL;
        }
@@ -421,7 +421,7 @@ PyObject* KX_SceneActuator::PySetCamera(PyObject* self,
 {
        ShowDeprecationWarning("setCamera()", "the camera property");
        PyObject *cam;
-       if (PyArg_ParseTuple(args, "O!", &KX_Camera::Type, &cam))
+       if (PyArg_ParseTuple(args, "O!:setCamera", &KX_Camera::Type, &cam))
        {
                if (m_camera)
                        m_camera->UnregisterActuator(this);
@@ -434,7 +434,7 @@ PyObject* KX_SceneActuator::PySetCamera(PyObject* self,
 
        /* one argument: a scene, ignore the rest */
        char *camName;
-       if(!PyArg_ParseTuple(args, "s", &camName))
+       if(!PyArg_ParseTuple(args, "s:setCamera", &camName))
        {
                return NULL;
        }
index ecc3b5740796928d8c20e236ebec66dc0ef42662..6381c43e1c6423d50e2b14d4df94565a69abd93c 100644 (file)
@@ -620,7 +620,7 @@ PyObject* KX_SoundActuator::PySetGain(PyObject* self, PyObject* args, PyObject*
 {
        ShowDeprecationWarning("setGain()", "the volume property");
        float gain = 1.0;
-       if (!PyArg_ParseTuple(args, "f", &gain))
+       if (!PyArg_ParseTuple(args, "f:setGain", &gain))
                return NULL;
        
        if (m_soundObject)
@@ -646,7 +646,7 @@ PyObject* KX_SoundActuator::PySetPitch(PyObject* self, PyObject* args, PyObject*
 {
        ShowDeprecationWarning("setPitch()", "the pitch property");
        float pitch = 1.0;
-       if (!PyArg_ParseTuple(args, "f", &pitch))
+       if (!PyArg_ParseTuple(args, "f:setPitch", &pitch))
                return NULL;
        
        if (m_soundObject)
@@ -672,7 +672,7 @@ PyObject* KX_SoundActuator::PySetRollOffFactor(PyObject* self, PyObject* args, P
 {
        ShowDeprecationWarning("setRollOffFactor()", "the rollOffFactor property");
        float rollofffactor = 1.0;
-       if (!PyArg_ParseTuple(args, "f", &rollofffactor))
+       if (!PyArg_ParseTuple(args, "f:setRollOffFactor", &rollofffactor))
                return NULL;
        
        if (m_soundObject)
@@ -698,7 +698,7 @@ PyObject* KX_SoundActuator::PySetLooping(PyObject* self, PyObject* args, PyObjec
 {
        ShowDeprecationWarning("setLooping()", "the looping property");
        bool looping = 1;
-       if (!PyArg_ParseTuple(args, "i", &looping))
+       if (!PyArg_ParseTuple(args, "i:setLooping", &looping))
                return NULL;
        
        if (m_soundObject)
@@ -728,7 +728,7 @@ PyObject* KX_SoundActuator::PySetPosition(PyObject* self, PyObject* args, PyObje
        pos[1] = 0.0;
        pos[2] = 0.0;
 
-       if (!PyArg_ParseTuple(args, "fff", &pos[0], &pos[1], &pos[2]))
+       if (!PyArg_ParseTuple(args, "fff:setPosition", &pos[0], &pos[1], &pos[2]))
                return NULL;
        
        if (m_soundObject)
@@ -747,7 +747,7 @@ PyObject* KX_SoundActuator::PySetVelocity(PyObject* self, PyObject* args, PyObje
        vel[1] = 0.0;
        vel[2] = 0.0;
 
-       if (!PyArg_ParseTuple(args, "fff", &vel[0], &vel[1], &vel[2]))
+       if (!PyArg_ParseTuple(args, "fff:setVelocity", &vel[0], &vel[1], &vel[2]))
                return NULL;
        
        if (m_soundObject)
@@ -772,7 +772,7 @@ PyObject* KX_SoundActuator::PySetOrientation(PyObject* self, PyObject* args, PyO
        ori[2][1] = 0.0;
        ori[2][2] = 1.0;
 
-       if (!PyArg_ParseTuple(args, "fffffffff", &ori[0][0], &ori[0][1], &ori[0][2], &ori[1][0], &ori[1][1], &ori[1][2], &ori[2][0], &ori[2][1], &ori[2][2]))
+       if (!PyArg_ParseTuple(args, "fffffffff:setOrientation", &ori[0][0], &ori[0][1], &ori[0][2], &ori[1][0], &ori[1][1], &ori[1][2], &ori[2][0], &ori[2][1], &ori[2][2]))
                return NULL;
        
        if (m_soundObject)
@@ -786,7 +786,7 @@ PyObject* KX_SoundActuator::PySetType(PyObject* self, PyObject* args, PyObject*
        int typeArg;
        ShowDeprecationWarning("setType()", "the type property");
 
-       if (!PyArg_ParseTuple(args, "i", &typeArg)) {
+       if (!PyArg_ParseTuple(args, "i:setType", &typeArg)) {
                return NULL;
        }
 
index e9e3c091ef3d3288f64edc1d294773563553eda8..a251a987935553ecf5a5c5161dc31faf1184d9b1 100644 (file)
@@ -179,7 +179,7 @@ KX_StateActuator::PySetOperation(PyObject* self,
        ShowDeprecationWarning("setOperation()", "the operation property");
        int oper;
 
-       if(!PyArg_ParseTuple(args, "i", &oper)) {
+       if(!PyArg_ParseTuple(args, "i:setOperation", &oper)) {
                return NULL;
        }
 
@@ -205,7 +205,7 @@ KX_StateActuator::PySetMask(PyObject* self,
        ShowDeprecationWarning("setMask()", "the mask property");
        int mask;
 
-       if(!PyArg_ParseTuple(args, "i", &mask)) {
+       if(!PyArg_ParseTuple(args, "i:setMask", &mask)) {
                return NULL;
        }
 
index c90ce06b916fd5e573797f97cd928a8b066d41c9..29c6a21b0b376c93a08b568fc4742323eea33dfc 100644 (file)
@@ -551,7 +551,7 @@ PyObject* KX_TrackToActuator::PyGetObject(PyObject* self, PyObject* args)
        
        ShowDeprecationWarning("getObject()", "the object property");
        
-       if (!PyArg_ParseTuple(args, "|i", &ret_name_only))
+       if (!PyArg_ParseTuple(args, "|i:getObject", &ret_name_only))
                return NULL;
        
        if (!m_object)
@@ -575,7 +575,7 @@ PyObject* KX_TrackToActuator::PySetTime(PyObject* self, PyObject* args, PyObject
        ShowDeprecationWarning("setTime()", "the timer property");
        int timeArg;
        
-       if (!PyArg_ParseTuple(args, "i", &timeArg))
+       if (!PyArg_ParseTuple(args, "i:setTime", &timeArg))
        {
                return NULL;
        }
@@ -623,7 +623,7 @@ PyObject* KX_TrackToActuator::PySetUse3D(PyObject* self, PyObject* args, PyObjec
        ShowDeprecationWarning("setTime()", "the use3D property");
        int boolArg;
        
-       if (!PyArg_ParseTuple(args, "i", &boolArg)) {
+       if (!PyArg_ParseTuple(args, "i:setUse3D", &boolArg)) {
                return NULL;
        }
        
index 6afea4d3227bd62f5641c24424ea68163264aa56..315b60922b7f20877fd1c617fbdb7d3139f4f77c 100644 (file)
@@ -46,7 +46,7 @@ PyObject* KX_VehicleWrapper::PyAddWheel(PyObject* self,
        int hasSteering;
 
        
-       if (PyArg_ParseTuple(args,"OOOOffi",&wheelGameObject,&pylistPos,&pylistDir,&pylistAxleDir,&suspensionRestLength,&wheelRadius,&hasSteering))
+       if (PyArg_ParseTuple(args,"OOOOffi:addWheel",&wheelGameObject,&pylistPos,&pylistDir,&pylistAxleDir,&suspensionRestLength,&wheelRadius,&hasSteering))
        {
                KX_GameObject* gameOb = (KX_GameObject*) wheelGameObject;
 
@@ -89,7 +89,7 @@ PyObject* KX_VehicleWrapper::PyGetWheelPosition(PyObject* self,
        
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"i",&wheelIndex))
+       if (PyArg_ParseTuple(args,"i:getWheelPosition",&wheelIndex))
        {
                float position[3];
                m_vehicle->GetWheelPosition(wheelIndex,position[0],position[1],position[2]);
@@ -104,7 +104,7 @@ PyObject* KX_VehicleWrapper::PyGetWheelRotation(PyObject* self,
                                                                                        PyObject* kwds)
 {
        int wheelIndex;
-       if (PyArg_ParseTuple(args,"i",&wheelIndex))
+       if (PyArg_ParseTuple(args,"i:getWheelRotation",&wheelIndex))
        {
                return PyFloat_FromDouble(m_vehicle->GetWheelRotation(wheelIndex));
        }
@@ -116,7 +116,7 @@ PyObject* KX_VehicleWrapper::PyGetWheelOrientationQuaternion(PyObject* self,
                                                                                        PyObject* kwds)
 {
        int wheelIndex;
-       if (PyArg_ParseTuple(args,"i",&wheelIndex))
+       if (PyArg_ParseTuple(args,"i:getWheelOrientationQuaternion",&wheelIndex))
        {
                float orn[4];
                m_vehicle->GetWheelOrientationQuaternion(wheelIndex,orn[0],orn[1],orn[2],orn[3]);
@@ -153,7 +153,7 @@ PyObject* KX_VehicleWrapper::PyApplyEngineForce(PyObject* self,
        float force;
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"fi",&force,&wheelIndex))
+       if (PyArg_ParseTuple(args,"fi:applyEngineForce",&force,&wheelIndex))
        {
                force *= -1.f;//someone reverse some conventions inside Bullet (axle winding)
                m_vehicle->ApplyEngineForce(force,wheelIndex);
@@ -171,7 +171,7 @@ PyObject* KX_VehicleWrapper::PySetTyreFriction(PyObject* self,
        float wheelFriction;
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"fi",&wheelFriction,&wheelIndex))
+       if (PyArg_ParseTuple(args,"fi:setTyreFriction",&wheelFriction,&wheelIndex))
        {
                m_vehicle->SetWheelFriction(wheelFriction,wheelIndex);
        }
@@ -188,7 +188,7 @@ PyObject* KX_VehicleWrapper::PySetSuspensionStiffness(PyObject* self,
        float suspensionStiffness;
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"fi",&suspensionStiffness,&wheelIndex))
+       if (PyArg_ParseTuple(args,"fi:setSuspensionStiffness",&suspensionStiffness,&wheelIndex))
        {
                m_vehicle->SetSuspensionStiffness(suspensionStiffness,wheelIndex);
        }
@@ -205,7 +205,7 @@ PyObject* KX_VehicleWrapper::PySetSuspensionDamping(PyObject* self,
        float suspensionDamping;
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"fi",&suspensionDamping,&wheelIndex))
+       if (PyArg_ParseTuple(args,"fi:setSuspensionDamping",&suspensionDamping,&wheelIndex))
        {
                m_vehicle->SetSuspensionDamping(suspensionDamping,wheelIndex);
        } else {
@@ -221,7 +221,7 @@ PyObject* KX_VehicleWrapper::PySetSuspensionCompression(PyObject* self,
        float suspensionCompression;
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"fi",&suspensionCompression,&wheelIndex))
+       if (PyArg_ParseTuple(args,"fi:setSuspensionCompression",&suspensionCompression,&wheelIndex))
        {
                m_vehicle->SetSuspensionCompression(suspensionCompression,wheelIndex);
        } else {
@@ -237,7 +237,7 @@ PyObject* KX_VehicleWrapper::PySetRollInfluence(PyObject* self,
        float rollInfluence;
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"fi",&rollInfluence,&wheelIndex))
+       if (PyArg_ParseTuple(args,"fi:setRollInfluence",&rollInfluence,&wheelIndex))
        {
                m_vehicle->SetRollInfluence(rollInfluence,wheelIndex);
        }
@@ -255,7 +255,7 @@ PyObject* KX_VehicleWrapper::PyApplyBraking(PyObject* self,
        float braking;
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"fi",&braking,&wheelIndex))
+       if (PyArg_ParseTuple(args,"fi:applyBraking",&braking,&wheelIndex))
        {
                m_vehicle->ApplyBraking(braking,wheelIndex);
        }
@@ -275,7 +275,7 @@ PyObject* KX_VehicleWrapper::PySetSteeringValue(PyObject* self,
        float steeringValue;
        int wheelIndex;
 
-       if (PyArg_ParseTuple(args,"fi",&steeringValue,&wheelIndex))
+       if (PyArg_ParseTuple(args,"fi:setSteeringValue",&steeringValue,&wheelIndex))
        {
                m_vehicle->SetSteeringValue(steeringValue,wheelIndex);
        }
index 18277245d1740a0f99698e8419c7c23844d44142..1ee2169adc42edd5aca77b00957d9ad969ae02f3 100644 (file)
@@ -159,7 +159,7 @@ KX_VisibilityActuator::PySetVisible(PyObject* self,
        int vis;
        ShowDeprecationWarning("SetVisible()", "the visible property");
 
-       if(!PyArg_ParseTuple(args, "i", &vis)) {
+       if(!PyArg_ParseTuple(args, "i:setVisible", &vis)) {
                return NULL;
        }