home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / xenon / includes / demorecorder.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-16  |  951 b   |  50 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Module:    CDemoRecorder
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    05/05/00
  8. //
  9. // Base:    None
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_DEMORECORDER_H
  16. #define _INCLUDE_DEMORECORDER_H
  17.  
  18. //-------------------------------------------------------------
  19.  
  20. class CDemoRecorder
  21. {
  22.     private:
  23.         gsCList<Controls *> m_event_list;
  24.         int m_event_index;
  25.  
  26.         bool m_has_level;
  27.         char m_level[_MAX_PATH];
  28.  
  29.         void destroy();
  30.  
  31.     public:
  32.         CDemoRecorder();
  33.         ~CDemoRecorder();
  34.  
  35.         bool load(const char *filename);
  36.         bool save();
  37.  
  38.         void record();
  39.         void setLevel(const char *filename);
  40.         bool addEvent(const Controls& controls);
  41.         
  42.         void playback();
  43.         const char *getLevel();
  44.         bool getEvent(Controls& controls);
  45. };
  46.                 
  47. //-------------------------------------------------------------
  48.  
  49. #endif
  50.