synched with trunk at revision 32129
[blender.git] / source / gameengine / Ketsji / KX_SCA_ReplaceMeshActuator.h
index 6a68bd88cc5a382dbc3ccd249b8601a500a3db54..4a6ae9f8fce954c03a64efc4ffae9e8e5d3ecf6a 100644 (file)
@@ -17,7 +17,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software Foundation,
-// Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 //
 // The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
 // All rights reserved.
@@ -50,12 +50,17 @@ class KX_SCA_ReplaceMeshActuator : public SCA_IActuator
        // mesh reference (mesh to replace)
        RAS_MeshObject* m_mesh;
        SCA_IScene*      m_scene;
+       bool m_use_gfx; 
+       bool m_use_phys;
 
  public:
        KX_SCA_ReplaceMeshActuator(
                SCA_IObject* gameobj, 
                RAS_MeshObject *mesh, 
-               SCA_IScene* scene);
+               SCA_IScene* scene,
+               bool use_gfx,
+               bool use_phys
+       );
 
        ~KX_SCA_ReplaceMeshActuator(
        );
@@ -69,15 +74,24 @@ class KX_SCA_ReplaceMeshActuator : public SCA_IActuator
 
        void    InstantReplaceMesh();
 
-       /* python api */
+#ifndef DISABLE_PYTHON
+
+       /* --------------------------------------------------------------------- */
+       /* Python interface ---------------------------------------------------- */
+       /* --------------------------------------------------------------------- */
+
+       virtual void Replace_IScene(SCA_IScene *val)
+       {
+               m_scene= val;
+       };
+
        static PyObject* pyattr_get_mesh(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef);
        static int pyattr_set_mesh(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef, PyObject *value);
 
-       /* 1. setMesh */
-       KX_PYMETHOD_DOC_O(KX_SCA_ReplaceMeshActuator,SetMesh);
-       KX_PYMETHOD_DOC(KX_SCA_ReplaceMeshActuator,getMesh);
        KX_PYMETHOD_DOC(KX_SCA_ReplaceMeshActuator,instantReplaceMesh);
 
+#endif // DISABLE_PYTHON
+
 }; 
 
 #endif