diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-04-06 23:14:04 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-04-06 23:14:04 +0400 |
commit | 88ce1c063839cb47c4dfe131910dd25faed09e88 (patch) | |
tree | 5d6fad1282e7fe7a10b358037626bf32a269eaba /source/gameengine | |
parent | 108bed660aa409320ab131c69ce43207614847e2 (diff) |
Removed my own patch #8208: export SCA_ISensor::Evaluate() to Python. It was only useful for the ray sensor and the new rayCastTo() function provides better functionality
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/GameLogic/SCA_ISensor.cpp | 12 | ||||
-rw-r--r-- | source/gameengine/GameLogic/SCA_ISensor.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/source/gameengine/GameLogic/SCA_ISensor.cpp b/source/gameengine/GameLogic/SCA_ISensor.cpp index 1a65f8311ed..43dd6bef83e 100644 --- a/source/gameengine/GameLogic/SCA_ISensor.cpp +++ b/source/gameengine/GameLogic/SCA_ISensor.cpp @@ -160,8 +160,6 @@ PyMethodDef SCA_ISensor::Methods[] = { METH_VARARGS, GetInvert_doc}, {"setInvert", (PyCFunction) SCA_ISensor::sPySetInvert, METH_VARARGS, SetInvert_doc}, - {"evaluate", (PyCFunction) SCA_ISensor::sPyEvaluate, - METH_VARARGS, Evaluate_doc}, {NULL,NULL} //Sentinel }; @@ -333,14 +331,4 @@ PyObject* SCA_ISensor::PySetUseNegPulseMode(PyObject* self, PyObject* args, PyOb Py_Return; } -char SCA_ISensor::Evaluate_doc[] = -"evaluate()\n" -"\tRe-evaluate the sensor so that isPositive() and other methods are up to date\n" -"\twith current game conditions. BGE does it automatically on each frame so it's\n" -"\tnot usually needed.\n" -"\tReturns True or False if the sensor evaluates positively or negatively\n"; -PyObject* SCA_ISensor::PyEvaluate(PyObject* self, PyObject* args, PyObject* kwds) -{ - return BoolToPyArg(Evaluate(NULL)); -} /* eof */ diff --git a/source/gameengine/GameLogic/SCA_ISensor.h b/source/gameengine/GameLogic/SCA_ISensor.h index 8de4480cf2e..1c5ee7a39bb 100644 --- a/source/gameengine/GameLogic/SCA_ISensor.h +++ b/source/gameengine/GameLogic/SCA_ISensor.h @@ -127,7 +127,6 @@ public: KX_PYMETHOD_DOC(SCA_ISensor,SetUseNegPulseMode); KX_PYMETHOD_DOC(SCA_ISensor,GetInvert); KX_PYMETHOD_DOC(SCA_ISensor,SetInvert); - KX_PYMETHOD_DOC(SCA_ISensor,Evaluate); }; |