home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / demo3 / demo3.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-11  |  957 b   |  54 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Program:    Demo 3 Header File
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    20/08/00
  8. //
  9. //-------------------------------------------------------------
  10.  
  11. #ifndef _INCLUDE_DEMO3_H
  12. #define _INCLUDE_DEMO3_H
  13.  
  14. #include "gamesystem.h"
  15. #include "level.h"
  16.  
  17. //-------------------------------------------------------------
  18.  
  19. class CDemo3 : public gsCApplication
  20. {
  21.     private:
  22.         gsCKeyboard m_keyboard;
  23.         gsCScreen m_screen;
  24.  
  25.         CLevel m_level;
  26.         int    m_ship_y;
  27.  
  28.         gsCStarfield m_stars;
  29.  
  30.     protected:
  31.  
  32.         bool createLevel();
  33.         void destroyLevel();
  34.  
  35.         void drawLevel();
  36.         void moveLevel();
  37.  
  38.         void setLayerPositions(int ship_y);
  39.  
  40.     public:
  41.  
  42.         CDemo3(const char *app_name) : gsCApplication(app_name) { };
  43.         ~CDemo3() { };
  44.  
  45.         bool initialize();
  46.         bool mainloop();
  47.         bool shutdown();
  48. };
  49.  
  50. //-------------------------------------------------------------
  51.  
  52. #endif
  53.  
  54.