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

SCA_GroupActuator.h

Go to the documentation of this file.
00001 
00008 
00009 #ifndef __KX_GROUPACTUATOR
00010 #define __KX_GROUPACTUATOR
00011 
00012 #include "SCA_IActuator.h"
00013 
00014 #include "SCA_GroupActuator.h"
00015 
00016 class SCA_GroupActuator : public SCA_IActuator
00017 {
00018         // Playmode is taken from the enum below. Not the best solution :(
00019         int m_playMode;
00020         
00021         // (play, pingpong, flipper, loopstop, loopend) start frame, stop frame (int)
00022         int m_startFrame;
00023         int m_stopFrame;
00024         // These two modes are not operational 
00025         // (set key) Key, frame number (int) 
00026         int m_frameNumber;
00027         void *m_key; // This is an ipo key... should get different meaning maybe...
00028         // (property) property: Maybe this is 
00029         void *m_property;
00030  public:
00031         enum GroupActType {
00032                 KX_ACT_GROUP_PLAY = 0,
00033                 KX_ACT_GROUP_PINGPONG,
00034                 KX_ACT_GROUP_FLIPPER,
00035                 KX_ACT_GROUP_LOOPSTOP,
00036                 KX_ACT_GROUP_LOOPEND,
00037                 KX_ACT_GROUP_SETKEY,
00038                 KX_ACT_GROUP_PROPERTY
00039         };
00040         
00041         SCA_GroupActuator(SCA_IObject *gameobj,
00042                                          int mode,
00043                                          int frame1,
00044                                          int frame2,
00045                                          void *key,
00046                                          void *prop,
00047                                          PyTypeObject* T=&Type);
00048         virtual ~SCA_GroupActuator();
00049         virtual CValue* GetReplica() {
00050                 
00051                 SCA_GroupActuator* replica = new SCA_GroupActuator(*this);
00052                 replica->ProcessReplica();
00053                 // this will copy properties and so on...
00054                 CValue::AddDataToReplica(replica);
00055                 return replica;
00056         };
00057 
00058         virtual bool Update(double curtime,double deltatime);
00059 };
00060 #endif //__KX_GROUPACTUATOR

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