00001 00006 00007 #ifndef __KX_ANDCONTROLLER 00008 #define __KX_ANDCONTROLLER 00009 00010 #include "SCA_IController.h" 00011 00012 class SCA_ANDController : public SCA_IController 00013 { 00014 Py_Header; 00015 //virtual void Trigger(class SCA_LogicManager* logicmgr); 00016 public: 00017 SCA_ANDController(SCA_IObject* gameobj,PyTypeObject* T=&Type ) 00018 :SCA_IController(gameobj,T){}; 00019 00020 virtual ~SCA_ANDController() {}; 00021 virtual CValue* GetReplica() { 00022 CValue* replica = new SCA_ANDController(*this); 00023 // this will copy properties and so on... 00024 CValue::AddDataToReplica(replica); 00025 return replica; 00026 }; 00027 00028 virtual void Trigger(SCA_LogicManager* logicmgr); 00029 00030 /* --------------------------------------------------------------------- */ 00031 /* Python interface ---------------------------------------------------- */ 00032 /* --------------------------------------------------------------------- */ 00033 00034 virtual PyObject* _getattr(char *attr); 00035 00036 }; 00037 00038 #endif //__KX_ANDCONTROLLER