BGE bug fix (good for 2.47): automatic detection that target object of AddObject...
[blender.git] / source / gameengine / Ketsji / KX_SCA_AddObjectActuator.h
index 2126a64630313cec6739d13fe078bf64b456169e..42123b94a6854e4012cf3dea4d34ed5074ef8122 100644 (file)
@@ -53,7 +53,7 @@ class KX_SCA_AddObjectActuator : public SCA_IActuator
        int     m_timeProp;
 
        /// Original object reference (object to replicate)     
-       CValue* m_OriginalObject;
+       SCA_IObject*    m_OriginalObject;
 
        /// Object will be added to the following scene
        SCA_IScene*     m_scene;
@@ -75,7 +75,7 @@ public:
 
        KX_SCA_AddObjectActuator(
                SCA_IObject *gameobj,
-               CValue* original,
+               SCA_IObject *original,
                int time,
                SCA_IScene* scene,
                const MT_Vector3& linvel,
@@ -89,6 +89,12 @@ public:
        GetReplica(
        ) ;
 
+       virtual void 
+       ProcessReplica();
+
+       virtual bool 
+       UnlinkObject(SCA_IObject* clientobj);
+
        virtual bool 
        Update();