Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KX_TrackToActuator.h

Go to the documentation of this file.
00001 //
00002 // Add object to the game world on action of this actuator
00003 //
00004 // Version: $Id: KX_TrackToActuator_h-source.html,v 1.2 2001/02/01 12:25:07 coockie Exp $
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         // Object reference. Actually, we use the object's 'life'
00017         SCA_IObject*    m_object;
00018         // 3d toggle
00019         bool m_allow3D;
00020         // time field
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                 // this will copy properties and so on...
00033                 CValue::AddDataToReplica(replica);
00034                 return replica;
00035         };
00036 
00037         virtual bool Update(double curtime,double deltatime);
00038 
00039         /* Python part */
00040         virtual PyObject*  _getattr(char *attr);
00041         
00042         /* 1. setObject */
00043         KX_PYMETHOD_DOC(KX_TrackToActuator,SetObject);
00044         /* 2. getObject */
00045         KX_PYMETHOD_DOC(KX_TrackToActuator,GetObject);
00046         /* 3. setTime */
00047         KX_PYMETHOD_DOC(KX_TrackToActuator,SetTime);
00048         /* 4. getTime */
00049         KX_PYMETHOD_DOC(KX_TrackToActuator,GetTime);
00050         /* 5. getUse3D */
00051         KX_PYMETHOD_DOC(KX_TrackToActuator,GetUse3D);
00052         /* 6. setUse3D */
00053         KX_PYMETHOD_DOC(KX_TrackToActuator,SetUse3D);
00054         
00055 }; /* end of class KX_TrackToActuator : public KX_EditObjectActuator */
00056 
00057 #endif

Generated at Thu Feb 1 13:03:07 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000