synched with trunk at revision 32129
[blender.git] / source / gameengine / Ketsji / KX_SCA_ReplaceMeshActuator.h
index 0e7f7852701c0213dd756c78ef48023400dde0b0..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,13 +50,16 @@ 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,
-               PyTypeObject* T=&Type
+               bool use_gfx,
+               bool use_phys
        );
 
        ~KX_SCA_ReplaceMeshActuator(
@@ -71,18 +74,24 @@ class KX_SCA_ReplaceMeshActuator : public SCA_IActuator
 
        void    InstantReplaceMesh();
 
-       virtual PyObject* py_getattro(PyObject *attr);
-       virtual PyObject* py_getattro_dict();
-       virtual int py_setattro(PyObject *attr, PyObject* value);
+#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