00001
00002
00003
00004
00005
00006
00007 #ifndef __KX_TrackToActuator
00008 #define __KX_TrackToActuator
00009
00010 #include "SCA_IActuator.h"
00011 #include "SCA_IObject.h"
00012
00013 class KX_TrackToActuator : public SCA_IActuator
00014 {
00015 Py_Header;
00016
00017 SCA_IObject* m_object;
00018
00019 bool m_allow3D;
00020
00021 int m_time;
00022 int m_trackTime;
00023 int m_trackflag;
00024 int m_upflag;
00025 public:
00026 KX_TrackToActuator(SCA_IObject* gameobj, SCA_IObject *ob, int time,
00027 bool threedee,int trackflag,int upflag, PyTypeObject* T=&Type);
00028 virtual ~KX_TrackToActuator();
00029 virtual CValue* GetReplica() {
00030 KX_TrackToActuator* replica = new KX_TrackToActuator(*this);
00031 replica->ProcessReplica();
00032
00033 CValue::AddDataToReplica(replica);
00034 return replica;
00035 };
00036
00037 virtual bool Update(double curtime,double deltatime);
00038
00039
00040 virtual PyObject* _getattr(char *attr);
00041
00042
00043 KX_PYMETHOD_DOC(KX_TrackToActuator,SetObject);
00044
00045 KX_PYMETHOD_DOC(KX_TrackToActuator,GetObject);
00046
00047 KX_PYMETHOD_DOC(KX_TrackToActuator,SetTime);
00048
00049 KX_PYMETHOD_DOC(KX_TrackToActuator,GetTime);
00050
00051 KX_PYMETHOD_DOC(KX_TrackToActuator,GetUse3D);
00052
00053 KX_PYMETHOD_DOC(KX_TrackToActuator,SetUse3D);
00054
00055 };
00056
00057 #endif