BGE Patch: Add Shape Action support and update MSCV_7 project file for glew.
[blender.git] / source / gameengine / Ketsji / KX_GameObject.h
index 8a90ec1463a2be9a0274561d947ffd3d8a8fa409..63a660617c486849f571b475b64946b38cc3981b 100644 (file)
@@ -55,7 +55,7 @@ struct KX_ClientObjectInfo;
 class RAS_MeshObject;
 class KX_IPhysicsController;
 class PHY_IPhysicsEnvironment;
-
+struct Object;
 
 /**
  * KX_GameObject is the main class for dynamic objects.
@@ -71,6 +71,7 @@ protected:
        STR_String                                                      m_text;
        int                                                                     m_layer;
        std::vector<RAS_MeshObject*>            m_meshes;
+       struct Object*                                          m_pBlenderObject;
        
        bool                                                            m_bSuspendDynamics;
        bool                                                            m_bUseObjectColor;
@@ -359,6 +360,20 @@ public:
                return m_pSGNode;
        }
 
+       /**
+        * @section blender object accessor functions.
+        */
+
+       struct Object* GetBlenderObject( )
+       {
+               return m_pBlenderObject;
+       }
+
+       void SetBlenderObject( struct Object* obj)
+       {
+               m_pBlenderObject = obj;
+       }
+       
        /**
         * Set the Scene graph node for this game object.
         * warning - it is your responsibility to make sure