synched with trunk at revision 30243
[blender.git] / source / gameengine / Ketsji / KX_Scene.h
index cd8277e..ca286b8 100644 (file)
@@ -83,6 +83,7 @@ class SCA_JoystickManager;
 class btCollisionShape;
 class KX_BlenderSceneConverter;
 struct KX_ClientObjectInfo;
+class KX_ObstacleSimulation;
 
 #ifdef WITH_CXX_GUARDEDALLOC
 #include "MEM_guardedalloc.h"
@@ -280,6 +281,9 @@ protected:
        struct Scene* m_blenderScene;
 
        RAS_2DFilterManager m_filtermanager;
+
+       KX_ObstacleSimulation* m_obstacleSimulation;
+
 public:        
        KX_Scene(class SCA_IInputDevice* keyboarddevice,
                class SCA_IInputDevice* mousedevice,
@@ -544,6 +548,8 @@ public:
        void Update2DFilter(vector<STR_String>& propNames, void* gameObj, RAS_2DFilterManager::RAS_2DFILTER_MODE filtermode, int pass, STR_String& text);
        void Render2DFilters(RAS_ICanvas* canvas);
 
+       KX_ObstacleSimulation* GetObstacleSimulation() {return m_obstacleSimulation;};
+
 #ifndef DISABLE_PYTHON
        /* --------------------------------------------------------------------- */
        /* Python interface ---------------------------------------------------- */
@@ -556,6 +562,7 @@ public:
        KX_PYMETHOD_DOC(KX_Scene, suspend);
        KX_PYMETHOD_DOC(KX_Scene, resume);
        KX_PYMETHOD_DOC(KX_Scene, get);
+       KX_PYMETHOD_DOC(KX_Scene, drawObstacleSimulation);
 
        /* attributes */
        static PyObject*        pyattr_get_name(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
@@ -614,6 +621,7 @@ public:
        //void PrintStats(int verbose_level) {
        //      m_bucketmanager->PrintStats(verbose_level)
        //}
+
 };
 
 typedef std::vector<KX_Scene*> KX_SceneList;