Merge of itasc branch. Project files, scons and cmake should be working. Makefile...
[blender.git] / source / gameengine / GameLogic / SCA_BasicEventManager.h
@@ -1,4 +1,6 @@
 /**
+ * Manager for sensor that only need to call Update
+ *
  * $Id$
  *
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * ***** END GPL LICENSE BLOCK *****
  */
-#ifndef SND_SDLCDDEVICE
-#define SND_SDLCDDEVICE
 
-struct SDL_CD;
+#ifndef __SCA_BASICEVENTMGR
+#define __SCA_BASICEVENTMGR
+
+#include "SCA_EventManager.h"
+#include <vector>
+
+using namespace std;
 
-class SND_SDLCDDevice
+class SCA_BasicEventManager : public SCA_EventManager
 {
+       class SCA_LogicManager* m_logicmgr;
+
 public:
-       SND_SDLCDDevice();
-       ~SND_SDLCDDevice();
-       
-       void NextFrame();
-
-       void PlayCD(int track);
-       void PauseCD(bool pause);
-       void StopCD();
-       void SetCDPlaymode(int playmode);
-       void SetCDGain(MT_Scalar gain);
-
-private:
-       void init();
-       /* CD Audio */
-       SDL_CD*                 m_cdrom;
-       bool            m_cdplaying;
-       int             m_cdtrack;
-       unsigned char   m_cdplaymode;
-       unsigned char   m_frame;
-};
+       SCA_BasicEventManager(class SCA_LogicManager* logicmgr);
+       ~SCA_BasicEventManager();
+
+       virtual void NextFrame();
 
+
+#ifdef WITH_CXX_GUARDEDALLOC
+public:
+       void *operator new( unsigned int num_bytes) { return MEM_mallocN(num_bytes, "GE:SCA_BasicEventManager"); }
+       void operator delete( void *mem ) { MEM_freeN(mem); }
 #endif
+};
+
+#endif //__SCA_BASICEVENTMGR
+