BGE Python api
authorCampbell Barton <ideasman42@gmail.com>
Fri, 3 Apr 2009 04:12:20 +0000 (04:12 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 3 Apr 2009 04:12:20 +0000 (04:12 +0000)
Added the method into the PyType so python knows about the methods (its supposed to work this way).
This means in the future the api can use PyType_Ready() to store the methods in the types dictionary.
Python3 removes Py_FindMethod and we should not be using it anyway since its not that efficient.

64 files changed:
source/gameengine/Converter/BL_ActionActuator.cpp
source/gameengine/Converter/BL_ShapeActionActuator.cpp
source/gameengine/Expressions/ListValue.cpp
source/gameengine/Expressions/PyObjectPlus.cpp
source/gameengine/Expressions/Value.cpp
source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
source/gameengine/GameLogic/SCA_ANDController.cpp
source/gameengine/GameLogic/SCA_ActuatorSensor.cpp
source/gameengine/GameLogic/SCA_AlwaysSensor.cpp
source/gameengine/GameLogic/SCA_DelaySensor.cpp
source/gameengine/GameLogic/SCA_ILogicBrick.cpp
source/gameengine/GameLogic/SCA_IObject.cpp
source/gameengine/GameLogic/SCA_ISensor.cpp
source/gameengine/GameLogic/SCA_JoystickSensor.cpp
source/gameengine/GameLogic/SCA_KeyboardSensor.cpp
source/gameengine/GameLogic/SCA_MouseSensor.cpp
source/gameengine/GameLogic/SCA_NANDController.cpp
source/gameengine/GameLogic/SCA_NORController.cpp
source/gameengine/GameLogic/SCA_ORController.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/GameLogic/SCA_XNORController.cpp
source/gameengine/GameLogic/SCA_XORController.cpp
source/gameengine/Ketsji/BL_Shader.cpp
source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.cpp
source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp
source/gameengine/Ketsji/KX_BlenderMaterial.cpp
source/gameengine/Ketsji/KX_CDActuator.cpp
source/gameengine/Ketsji/KX_Camera.cpp
source/gameengine/Ketsji/KX_Camera.h
source/gameengine/Ketsji/KX_CameraActuator.cpp
source/gameengine/Ketsji/KX_ConstraintActuator.cpp
source/gameengine/Ketsji/KX_ConstraintWrapper.cpp
source/gameengine/Ketsji/KX_GameActuator.cpp
source/gameengine/Ketsji/KX_GameObject.cpp
source/gameengine/Ketsji/KX_IpoActuator.cpp
source/gameengine/Ketsji/KX_Light.cpp
source/gameengine/Ketsji/KX_Light.h
source/gameengine/Ketsji/KX_MeshProxy.cpp
source/gameengine/Ketsji/KX_MouseFocusSensor.cpp
source/gameengine/Ketsji/KX_NearSensor.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_RadarSensor.cpp
source/gameengine/Ketsji/KX_RaySensor.cpp
source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp
source/gameengine/Ketsji/KX_SCA_DynamicActuator.cpp
source/gameengine/Ketsji/KX_SCA_EndObjectActuator.cpp
source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.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_TouchSensor.cpp
source/gameengine/Ketsji/KX_TrackToActuator.cpp
source/gameengine/Ketsji/KX_VehicleWrapper.cpp
source/gameengine/Ketsji/KX_VertexProxy.cpp
source/gameengine/Ketsji/KX_VisibilityActuator.cpp

index 22c6c95b1584eba26a39fbc878371d157d5db47a..88f75eac1d5eca489cf954dfb423f4996b6dc727 100644 (file)
@@ -974,13 +974,10 @@ PyTypeObject BL_ActionActuator::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject BL_ActionActuator::Parents[] = {
index 2e02ee9b94101e7016a45c07f0080c5c2a8fcb10..74953a90bb35491658802d4044a0f9c503a5c3c5 100644 (file)
@@ -431,11 +431,8 @@ PyTypeObject BL_ShapeActionActuator::Type = {
                __setattr,
                0, //&MyPyCompare,
                __repr,
-               0, //&cvalue_as_number,
-               0,
-               0,
-               0,
-               0
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject BL_ShapeActionActuator::Parents[] = {
index 90a939af23611ac3447d0b98f188c1f036242eeb..aa84cab0266aacab532008acc0ee8f929577e5cf 100644 (file)
@@ -210,6 +210,8 @@ PyTypeObject CListValue::Type = {
        &instance_as_mapping,           /*tp_as_mapping*/
        0,                              /*tp_hash*/
        0,                              /*tp_call */
+       0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 
index 494a848be74a663a52aab8c0605108e0e012b50d..417388be4644221c283361d79bd7c196054b8538 100644 (file)
@@ -66,12 +66,9 @@ PyTypeObject PyObjectPlus::Type = {
        __getattr,                      /*tp_getattr*/
        __setattr,                      /*tp_setattr*/
        0,                              /*tp_compare*/
-       __repr,                         /*tp_repr*/
-       0,                              /*tp_as_number*/
-       0,                              /*tp_as_sequence*/
-       0,                              /*tp_as_mapping*/
-       0,                              /*tp_hash*/
-       0,                              /*tp_call */
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyObjectPlus::~PyObjectPlus()
index 2ab0a9addee9ac463be1f2ebd3d514b94f1cc9be..3650976345479be5d20e45308eded748209dde32 100644 (file)
@@ -151,10 +151,8 @@ PyTypeObject CValue::Type = {
        &MyPyCompare,
        __repr,
        &cvalue_as_number,
-       0,
-       0,
-       0,
-       0
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject CValue::Parents[] = {
index 7bf051f2b5cb559a396a05471bbf2da02f4baa02..0b410728512d95fc42dad794d255464849cf9625 100644 (file)
@@ -90,12 +90,9 @@ PyTypeObject SCA_2DFilterActuator::Type = {
         __getattr,
         __setattr,
         0, 
-         __repr,
-        0,
-        0,
-        0,
-        0,
-        0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
index b67ef7dabaf19cd7ff7835c738a002a9c0f398ea..de67037b64ac807135cee2fe0079bbdf69a68609 100644 (file)
@@ -116,13 +116,10 @@ PyTypeObject SCA_ANDController::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_ANDController::Parents[] = {
index 7f8dbef7758c920063dd138b3e83a1b6840e3812..d5c3e1960fe2b5457587174b01971c090272985e 100644 (file)
@@ -131,13 +131,10 @@ PyTypeObject SCA_ActuatorSensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_ActuatorSensor::Parents[] = {
index 154f0ad8cef7a6583a07640bd230f9014b74bdbc..e2125b8b08df84fdc37333ac0774c6bf8e179329 100644 (file)
@@ -116,11 +116,8 @@ PyTypeObject SCA_AlwaysSensor::Type = {
        __setattr,
        0, //&MyPyCompare,
        __repr,
-       0, //&cvalue_as_number,
-       0,
-       0,
-       0,
-       0
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_AlwaysSensor::Parents[] = {
index 31a620b939d4b10ae7c09b9420d6222814c73404..733057017a7ad27a74b0966c449dc945b5a81d95 100644 (file)
@@ -142,11 +142,8 @@ PyTypeObject SCA_DelaySensor::Type = {
        __setattr,
        0, //&MyPyCompare,
        __repr,
-       0, //&cvalue_as_number,
-       0,
-       0,
-       0,
-       0
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_DelaySensor::Parents[] = {
index 49d39f75814ea70797f13017b071fbd8a0123374..3cefe6387269cd996b5c5f26bf0016c34a789ca2 100644 (file)
@@ -228,11 +228,8 @@ PyTypeObject SCA_ILogicBrick::Type = {
        __setattr,
        0, //&MyPyCompare,
        __repr,
-       0, //&cvalue_as_number,
-       0,
-       0,
-       0,
-       0
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 
index debd62d44e6ab045812f1b4c504b6d300112466c..976665a3ccdd6faaf88464cd61b7a69d5c88b44e 100644 (file)
@@ -386,11 +386,8 @@ PyTypeObject SCA_IObject::Type = {
        __setattr,
        0, //&MyPyCompare,
        __repr,
-       0, //&cvalue_as_number,
-       0,
-       0,
-       0,
-       0
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 
index e8a072f4c46a9be64f9663959fff83db2ab40a36..0d7dffca17a7f85d9d12a3eb62a837d1bd5f7395 100644 (file)
@@ -402,13 +402,10 @@ PyTypeObject SCA_ISensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_ISensor::Parents[] = {
index c2d90c830cff0c858fc4ad743a9f897895d671e0..6b8779ee37ab211d5c14568d3b30e1d90626f5cf 100644 (file)
@@ -286,11 +286,8 @@ PyTypeObject SCA_JoystickSensor::Type = {
                __setattr,
                0, //&MyPyCompare,
                __repr,
-               0, //&cvalue_as_number,
-               0,
-               0,
-               0,
-               0
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
index 324e5eae98a624298bb00cf85dc6f71f3acc245e..bf470daa3497be08077c15008170ebf4fa1da6e6 100644 (file)
@@ -789,11 +789,8 @@ PyTypeObject SCA_KeyboardSensor::Type = {
        __setattr,
        0, //&MyPyCompare,
        __repr,
-       0, //&cvalue_as_number,
-       0,
-       0,
-       0,
-       0
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_KeyboardSensor::Parents[] = {
index 57535b29f32696703b5b40a2e271be969875b38d..19365fbbb883f4457033e6ac3cea88b03b41d573 100644 (file)
@@ -309,13 +309,10 @@ PyTypeObject SCA_MouseSensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_MouseSensor::Parents[] = {
index 18426d755823fb1989089dbb56ca6bb537fad05f..2bc6a3ef1d651ac4c104f76b5b1350d4559e9186 100644 (file)
@@ -116,13 +116,10 @@ PyTypeObject SCA_NANDController::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_NANDController::Parents[] = {
index 1de6a641c3d85d889a28d045d81f57076a340b8d..98ba77df54caffd14d47d31e87af620b68d6ac52 100644 (file)
@@ -116,13 +116,10 @@ PyTypeObject SCA_NORController::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_NORController::Parents[] = {
index 61fbc889d901d80d2ef34ad57b631594eda71a01..ba616402ac903d7d9a82bd54c10cba3d6d991aca 100644 (file)
@@ -110,11 +110,8 @@ PyTypeObject SCA_ORController::Type = {
        __setattr,
        0, //&MyPyCompare,
        __repr,
-       0, //&cvalue_as_number,
-       0,
-       0,
-       0,
-       0
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_ORController::Parents[] = {
index c9ace081bae8e126aef8765552a1faa2e518e543..28a3b6b822a8a817210d7955e646c8d41717d4f3 100644 (file)
@@ -227,13 +227,10 @@ PyTypeObject SCA_PropertyActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_PropertyActuator::Parents[] = {
index d683c8bb3e7d70bfd627bb4d642da831e0fc74ad..ef3dbe7e049903633ce6bd838ff6698cd84f645e 100644 (file)
@@ -315,13 +315,10 @@ PyTypeObject SCA_PropertySensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_PropertySensor::Parents[] = {
index c75e36acab298b29919c601facfabceed9033d54..4ad3f135d31f2cd80401a8e380248557f205f7b5 100644 (file)
@@ -235,11 +235,8 @@ PyTypeObject SCA_PythonController::Type = {
                __setattr,
                0, //&MyPyCompare,
                __repr,
-               0, //&cvalue_as_number,
-               0,
-               0,
-               0,
-               0
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject SCA_PythonController::Parents[] = {
index d6c73f21f37aa417879af56cc8acaabee3af0da7..78614f9ace3311bcef00ff446d49ecc866a6231a 100644 (file)
@@ -321,13 +321,10 @@ PyTypeObject SCA_RandomActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_RandomActuator::Parents[] = {
index 5354c120f52ef243157491b3de8bc286f18c2450..d88f8f500c00200bb7c3aaeeab5e21e0646ed3df 100644 (file)
@@ -136,13 +136,10 @@ PyTypeObject SCA_RandomSensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_RandomSensor::Parents[] = {
index b2734dd1b330e518907d9638d6b7123f4ce17383..a9fe906f54e8f864f506b4a108f1d023336146d5 100644 (file)
@@ -120,13 +120,10 @@ PyTypeObject SCA_XNORController::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_XNORController::Parents[] = {
index 662ef523d5621d19f51873e2603ff8b6bbc13638..b0053ca17fb3e451cd4ef5454090ddd1a00ad469 100644 (file)
@@ -120,13 +120,10 @@ PyTypeObject SCA_XORController::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject SCA_XORController::Parents[] = {
index 60cb288436ab137b18fd5fbdb5b5a7695c1919b0..14f672bb68fc158385dadacd7776628c6170a9dd 100644 (file)
@@ -783,7 +783,8 @@ PyTypeObject BL_Shader::Type = {
                __setattr,
                0,
                __repr,
-               0
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
index fa4fdaee972882c64b5db203114b71a453196a22..0a7e20b8650bd6b58aae7157e8e46bf807018f29 100644 (file)
@@ -114,13 +114,10 @@ PyTypeObject KX_NetworkMessageActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_NetworkMessageActuator::Parents[] = {
index 40ade4607927114e062d7bb7854c052b7f0eeda0..d5434a34eb746328ce6569e553454773597ee9a0 100644 (file)
@@ -177,13 +177,10 @@ PyTypeObject KX_NetworkMessageSensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_NetworkMessageSensor::Parents[] = {
index b9bd7647f89338d7df7701368069c7888b174ca2..668873883af34eb47caa53b3a9a61a34e794ea72 100644 (file)
@@ -764,7 +764,8 @@ PyTypeObject KX_BlenderMaterial::Type = {
                __setattr,
                0,
                __repr,
-               0
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
index 98f76dbee544898ed8e2b01f61e2e43a27819025..f86a56692252ba85ca9c6d839e40a24782e24c32 100644 (file)
@@ -167,13 +167,10 @@ PyTypeObject KX_CDActuator::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
index 5caac2fc67037d653b4f634424f175e48e9d7548..cb138efba89e414c6a3fbfc12443ac9a0c53cf05 100644 (file)
@@ -487,33 +487,6 @@ PyAttributeDef KX_Camera::Attributes[] = {
        { NULL }        //Sentinel
 };
 
-char KX_Camera::doc[] = "Module KX_Camera\n\n"
-"Constants:\n"
-"\tINSIDE\n"
-"\tINTERSECT\n"
-"\tOUTSIDE\n"
-"Attributes:\n"
-"\tlens -> float\n"
-"\t\tThe camera's lens value\n"
-"\tnear -> float\n"
-"\t\tThe camera's near clip distance\n"
-"\tfar -> float\n"
-"\t\tThe camera's far clip distance\n"
-"\tfrustum_culling -> bool\n"
-"\t\tNon zero if this camera is frustum culling.\n"
-"\tprojection_matrix -> [[float]]\n"
-"\t\tThis camera's projection matrix.\n"
-"\tmodelview_matrix -> [[float]] (read only)\n"
-"\t\tThis camera's model view matrix.\n"
-"\t\tRegenerated every frame from the camera's position and orientation.\n"
-"\tcamera_to_world -> [[float]] (read only)\n"
-"\t\tThis camera's camera to world transform.\n"
-"\t\tRegenerated every frame from the camera's position and orientation.\n"
-"\tworld_to_camera -> [[float]] (read only)\n"
-"\t\tThis camera's world to camera transform.\n"
-"\t\tRegenerated every frame from the camera's position and orientation.\n"
-"\t\tThis is camera_to_world inverted.\n";
-
 PyTypeObject KX_Camera::Type = {
        PyObject_HEAD_INIT(&PyType_Type)
                0,
@@ -524,14 +497,10 @@ PyTypeObject KX_Camera::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0, 0, 0, 0, 0, 0,
-               doc
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject KX_Camera::Parents[] = {
index efd18f99390aa493ad6d82f8c0e647b8b1960383..b80be9a7feea0c1bd9636994f3fa3b0e68b6ca3b 100644 (file)
@@ -107,11 +107,6 @@ protected:
        MT_Scalar    m_frustum_radius;
        bool         m_set_frustum_center;
 
-       /**
-        * Python module doc string.
-        */
-       static char doc[];
-
        /**
         * Extracts the camera clip frames from the projection and world-to-camera matrices.
         */
index 65f3aea12f963fd8cbf3cf39c02d54eeaedfc391..08afa2853c313adbe00e31bd009810a8d6fab74c 100644 (file)
@@ -380,13 +380,10 @@ PyTypeObject KX_CameraActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_CameraActuator::Parents[] = {
index fba9544d7027864cbadc043b53c395e5a1713299..31a566f34ad741e2163ac8ff171e7642949b6dbb 100644 (file)
@@ -569,13 +569,10 @@ PyTypeObject KX_ConstraintActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_ConstraintActuator::Parents[] = {
index f014c1896fe47205d95995f9db30af9aa23c000d..05e677b9fd32ab6bb3ccceb21443e8929cf570e2 100644 (file)
@@ -78,13 +78,10 @@ PyTypeObject KX_ConstraintWrapper::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject KX_ConstraintWrapper::Parents[] = {
index 6799ac7269cabeb5b2dea53a08f541db62c7dda3..6800c75d807c3ad0cca9304a15cf2d6fcf00b2cb 100644 (file)
@@ -217,13 +217,10 @@ PyTypeObject KX_GameActuator::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
index 5c9615c408beba5439a161de980d780849fefd09..2bd4b2834d1d451ff3c9893c8ace85d14a9435b1 100644 (file)
@@ -1189,17 +1189,20 @@ PyTypeObject KX_GameObject::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
+               0,
                __repr,
-               0, //&cvalue_as_number,
                0,
-               &Mapping,
                0,
-               0
+               &Mapping,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
 
+
+
+
 PyParentObject KX_GameObject::Parents[] = {
        &KX_GameObject::Type,
                &SCA_IObject::Type,
index f6fdce9de0fac89f577445155a64839d05a4c848..5d1d45879c93d026552424580e682310dc42ad9d 100644 (file)
@@ -422,13 +422,10 @@ PyTypeObject KX_IpoActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_IpoActuator::Parents[] = {
index 487b8f30e0d2e1dc29ac51f6bf392bfcf8b5e69e..f71dd69a7a341c8f9de75ea91e8a2b925cd9b6e4 100644 (file)
@@ -306,29 +306,6 @@ PyAttributeDef KX_LightObject::Attributes[] = {
        { NULL }        //Sentinel
 };
 
-char KX_LightObject::doc[] = "Module KX_LightObject\n\n"
-"Constants:\n"
-"\tSPOT\n"
-"\tSUN\n"
-"\tNORMAL\n"
-"Attributes:\n"
-"\ttype -> SPOT, SUN or NORMAL\n"
-"\t\tThe type of light.\n"
-"\tlayer -> integer bit field.\n"
-"\t\tThe layers this light applies to.\n"
-"\tenergy -> float.\n"
-"\t\tThe brightness of the light.\n"
-"\tdistance -> float.\n"
-"\t\tThe effect radius of the light.\n"
-"\tcolour -> list [r, g, b].\n"
-"\tcolor  -> list [r, g, b].\n"
-"\t\tThe color of the light.\n"
-"\tlin_attenuation -> float.\n"
-"\t\tThe attenuation factor for the light.\n"
-"\tspotsize -> float.\n"
-"\t\tThe size of the spot.\n"
-"\tspotblend -> float.\n"
-"\t\tThe blend? of the spot.\n";
 
 PyTypeObject KX_LightObject::Type = {
        PyObject_HEAD_INIT(&PyType_Type)
@@ -340,14 +317,10 @@ PyTypeObject KX_LightObject::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0, 0, 0, 0, 0, 0,
-               doc
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject KX_LightObject::Parents[] = {
index 47edd09b5b993ca428be0437a0260b2df00f0999..98dcc8ef87391951f40c9cc78dc48d0838515dd3 100644 (file)
@@ -47,7 +47,6 @@ protected:
        class RAS_IRenderTools* m_rendertools;  //needed for registering and replication of lightobj
        bool                            m_glsl;
        Scene*                          m_blenderscene;
-       static char                     doc[];
 
 public:
        KX_LightObject(void* sgReplicationInfo,SG_Callbacks callbacks,class RAS_IRenderTools* rendertools,const struct RAS_LightObject& lightobj, bool glsl, PyTypeObject *T = &Type);
index f40c307315e2edbf24d09a404afceb91329129f0..f349a6b519a97fc929ccd58b7c7f4736a9fdc83e 100644 (file)
@@ -55,13 +55,10 @@ PyTypeObject KX_MeshProxy::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_MeshProxy::Parents[] = {
index 384034485e7f3cb4de0e230ce66efbd5092eb041..973dfce505b24646052cdff6675f559038f1d924 100644 (file)
@@ -302,13 +302,10 @@ PyTypeObject KX_MouseFocusSensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_MouseFocusSensor::Parents[] = {
index 993a6b3d86c55b31830e38b03091714f85412d52..383d673b7eaa8e24020925555b85e6bc722a4524 100644 (file)
@@ -296,13 +296,10 @@ PyTypeObject KX_NearSensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 
index 0666261b4705e75987e5c8ad111e9ff31a3b2a59..ca2157f2bc0eedfb224ceb343f650866c9672fb1 100644 (file)
@@ -286,13 +286,10 @@ PyTypeObject KX_ObjectActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_ObjectActuator::Parents[] = {
index 3430fd85184b02fe780d4f758ac82bc4ea8142f8..4c0507cd0bfe153e94597f109b8e10e28bed0983 100644 (file)
@@ -148,13 +148,10 @@ PyTypeObject KX_ParentActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_ParentActuator::Parents[] = {
index 246c63feb21dfc02dc7ef3b9e20150b4608ad095..4c04a96eae2b3c49e5e86a1818caf4684488f309 100644 (file)
@@ -128,13 +128,10 @@ PyTypeObject KX_PhysicsObjectWrapper::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject KX_PhysicsObjectWrapper::Parents[] = {
index b4bdd77fb6677e8afbf6d19b45075c35fb4feece..27fbe8b19f340cb4097bd21e82eaf00bf62bf69b 100644 (file)
@@ -48,13 +48,10 @@ PyTypeObject KX_PolyProxy::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_PolyProxy::Parents[] = {
index bbaf697b1684cf48b1263e95186304de702a353d..9e979144c47651ade8caf4b70c79cd5e837127e5 100644 (file)
@@ -194,9 +194,10 @@ PyTypeObject KX_PolygonMaterial::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
+               0,
                __repr,
-               0 //&cvalue_as_number,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject KX_PolygonMaterial::Parents[] = {
index fa8998cd81df97c704a0e8c4dd55f4b7ae878ca2..91ad60e8cee3d9b2882fbfec8d577b4f57094d04 100644 (file)
@@ -259,13 +259,10 @@ PyTypeObject KX_RadarSensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_RadarSensor::Parents[] = {
index 253fe11fe0536b13260097a662931355f352ec0b..fdaf48218b39f2899ca216438657601c0d276174 100644 (file)
@@ -330,13 +330,11 @@ PyTypeObject KX_RaySensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
-       0,
        0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
+
 };
 
 PyParentObject KX_RaySensor::Parents[] = {
index 7c4f60a7f0aaf9e2226f59239f718c51ae0c13ba..33e74d4dc5aa6459f7672a7f8deca3f3d3e95a6f 100644 (file)
@@ -176,13 +176,10 @@ PyTypeObject KX_SCA_AddObjectActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, 
-       __repr,
-       0,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_SCA_AddObjectActuator::Parents[] = {
index 8df3af6172153434d5502bec39857d167176e186..7dd5301385cc23f6fa924be45d7731a7867efbf6 100644 (file)
@@ -50,9 +50,7 @@
 
        PyTypeObject 
 
-KX_SCA_DynamicActuator::
-
-Type = {
+KX_SCA_DynamicActuator::Type = {
        PyObject_HEAD_INIT(&PyType_Type)
        0,
        "KX_SCA_DynamicActuator",
@@ -62,13 +60,10 @@ Type = {
        0,
        __getattr,
        __setattr,
-       0, 
-       __repr,
-       0, 
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_SCA_DynamicActuator::Parents[] = {
index 9268a1df5f035b19f35da7bcfb6c6a402873238e..6f0bd65ce43c0c6afed5010baa654c868264909c 100644 (file)
@@ -103,13 +103,10 @@ PyTypeObject KX_SCA_EndObjectActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 
index 58d6f659135b28b1676d599f6170edb8546162d7..c892af71159022ee2d3147145849f8339df13ea1 100644 (file)
@@ -52,9 +52,7 @@
 
        PyTypeObject 
 
-KX_SCA_ReplaceMeshActuator::
-
-Type = {
+KX_SCA_ReplaceMeshActuator::Type = {
        PyObject_HEAD_INIT(&PyType_Type)
        0,
        "KX_SCA_ReplaceMeshActuator",
@@ -64,13 +62,10 @@ Type = {
        0,
        __getattr,
        __setattr,
-       0, 
-       __repr,
-       0, 
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_SCA_ReplaceMeshActuator::Parents[] = {
index b24b5cd9693595d011bc369cdf3784e0cc66a30e..67f6c567549017dd8c552c73e4d01b0a692c2aa2 100644 (file)
@@ -1526,13 +1526,10 @@ PyTypeObject KX_Scene::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0, 0, 0, 0, 0, 0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject KX_Scene::Parents[] = {
index 579c53974d52b7c0209d64783722b630bf95b55e..595d2cb40703e5bc41a156f806814fb256bbd017 100644 (file)
@@ -235,13 +235,10 @@ PyTypeObject KX_SceneActuator::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
index 6de1d67bfdb2cd1c5a25564dcb7280def91332ff..f6c0283d49f9a1c844885970e1e7004d6a9c3c02 100644 (file)
@@ -242,13 +242,10 @@ PyTypeObject KX_SoundActuator::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 
index 0de4da79bd8aa1eafb3e3e77e0581b1a288dc5d7..e48c42099232d2bfe51ad14d58618b5eaeb85999 100644 (file)
@@ -108,8 +108,7 @@ KX_StateActuator::Update()
 
 
 /* Integration hooks ------------------------------------------------------- */
-PyTypeObject 
-KX_StateActuator::Type = {
+PyTypeObject KX_StateActuator::Type = {
        PyObject_HEAD_INIT(&PyType_Type)
        0,
        "KX_StateActuator",
@@ -119,13 +118,10 @@ KX_StateActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject 
index 705b54edd3784dfd17c5b0c6e0188b99b755fa54..b1c22a86f3d1eb741382380855b57ff30b103f79 100644 (file)
@@ -251,13 +251,10 @@ PyTypeObject KX_TouchSensor::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_TouchSensor::Parents[] = {
index e54528c7bd4e67169522e9cafcd0fd9f28298d8f..575abc5d7482dd9fa3594c2d6902472528f719d8 100644 (file)
@@ -434,13 +434,10 @@ PyTypeObject KX_TrackToActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 
index 8d5af1b92164420787c109ef8e9ad8bb6f71b055..4960228056a835ae4eb751fabd9c63ec2ea331ec 100644 (file)
@@ -308,13 +308,10 @@ PyTypeObject KX_VehicleWrapper::Type = {
                0,
                __getattr,
                __setattr,
-               0, //&MyPyCompare,
-               __repr,
-               0, //&cvalue_as_number,
-               0,
                0,
-               0,
-               0
+               __repr,
+               0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+               Methods
 };
 
 PyParentObject KX_VehicleWrapper::Parents[] = {
index da0e3dbdd8d007506276049b536280c34504f535..d7b5203795d223b9609fe0dfa511b1f9042d6dd5 100644 (file)
@@ -46,13 +46,10 @@ PyTypeObject KX_VertexProxy::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
        0,
-       0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
 };
 
 PyParentObject KX_VertexProxy::Parents[] = {
index 6d3c4e79280648c279c55ca62e36ecff4c30bd4c..10e8c8273944d8cb29351ad1342c0d79e7d2b0f5 100644 (file)
@@ -90,8 +90,7 @@ KX_VisibilityActuator::Update()
 
 
 /* Integration hooks ------------------------------------------------------- */
-PyTypeObject 
-KX_VisibilityActuator::Type = {
+PyTypeObject KX_VisibilityActuator::Type = {
        PyObject_HEAD_INIT(&PyType_Type)
        0,
        "KX_VisibilityActuator",
@@ -101,13 +100,11 @@ KX_VisibilityActuator::Type = {
        0,
        __getattr,
        __setattr,
-       0, //&MyPyCompare,
-       __repr,
-       0, //&cvalue_as_number,
-       0,
-       0,
        0,
-       0
+       __repr,
+       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+       Methods
+
 };
 
 PyParentObject