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

  1. //-------------------------------------------------------------
  2. //
  3. // Program:    Demo 1 Header File
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    20/08/00
  8. //
  9. //-------------------------------------------------------------
  10.  
  11. #ifndef _INCLUDE_DEMO1_H
  12. #define _INCLUDE_DEMO1_H
  13.  
  14. #include "gamesystem.h"
  15.  
  16. //-------------------------------------------------------------
  17.  
  18. class CDemo1 : public gsCApplication
  19. {
  20.     private:
  21.         gsCKeyboard m_keyboard;
  22.         gsCScreen m_screen;
  23.         gsCTiledImage m_image;
  24.         gsCList<gsCSprite *> m_sprite;
  25.         gsCStarfield m_stars;
  26.  
  27.     protected:
  28.  
  29.         bool createSprites();
  30.         bool destroySprites();
  31.  
  32.         void drawSprites();
  33.         void moveSprites();
  34.  
  35.     public:
  36.  
  37.         CDemo1(const char *app_name) : gsCApplication(app_name) { };
  38.         ~CDemo1() { };
  39.  
  40.         bool initialize();
  41.         bool mainloop();
  42.         bool shutdown();
  43. };
  44.  
  45. //-------------------------------------------------------------
  46.  
  47. #endif
  48.  
  49.