00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __SCA_AddObjectActuator
00010 #define __SCA_AddObjectActuator
00011
00012
00013 #include "SCA_IActuator.h"
00014 #include "SCA_LogicManager.h"
00015
00016 #include "MT_Vector3.h"
00017
00018 class SCA_AddObjectActuator : public SCA_IActuator
00019 {
00020 Py_Header;
00021
00022 int m_timeProp;
00023
00024
00025 CValue* m_OriginalObject;
00026
00027 class SCA_IScene* m_scene;
00029 MT_Vector3 m_linear_velocity;
00031 bool m_localFlag;
00032
00033 public:
00034 SCA_AddObjectActuator(SCA_IObject *gameobj,
00035 CValue* original,
00036 int time,
00037 class SCA_IScene* scene,
00038 const MT_Vector3& linvel,
00039 bool local,
00040 PyTypeObject* T=&Type);
00041 ~SCA_AddObjectActuator(void);
00042 virtual CValue* GetReplica() {
00043 SCA_AddObjectActuator* replica = new SCA_AddObjectActuator(*this);
00044
00045 replica->ProcessReplica();
00046 CValue::AddDataToReplica(replica);
00047 return replica;
00048 };
00049
00050 bool Update(double curtime,double deltatime);
00051 virtual PyObject* _getattr(char *attr);
00052
00053
00054
00055 KX_PYMETHOD_DOC(SCA_AddObjectActuator,SetObject);
00056
00057 KX_PYMETHOD_DOC(SCA_AddObjectActuator,SetTime);
00058
00059 KX_PYMETHOD_DOC(SCA_AddObjectActuator,GetTime);
00060
00061 KX_PYMETHOD_DOC(SCA_AddObjectActuator,GetObject);
00062
00063 KX_PYMETHOD_DOC(SCA_AddObjectActuator,GetLinearVelocity);
00064
00065 KX_PYMETHOD_DOC(SCA_AddObjectActuator,SetLinearVelocity);
00066
00067 };
00068
00069 #endif
00070
00071
00072
00073
00074