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
00019 int m_playMode;
00020
00021
00022 int m_startFrame;
00023 int m_stopFrame;
00024
00025
00026 int m_frameNumber;
00027 void *m_key;
00028
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
00054 CValue::AddDataToReplica(replica);
00055 return replica;
00056 };
00057
00058 virtual bool Update(double curtime,double deltatime);
00059 };
00060 #endif //__KX_GROUPACTUATOR