home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 April / Game.EXE_04_2002.iso / Alawar / Interface2D.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-02  |  601 b   |  34 lines

  1. #ifndef INTERFACE2D_H
  2. #define INTERFACE2D_H
  3.  
  4. class Hardware2D;
  5. #include "String.h"
  6.  
  7. class Interface2D
  8. {
  9. public:    
  10.     explicit Interface2D(Hardware2D * hardware)
  11.         :    hardware( hardware )
  12.     {}
  13.     virtual ~Interface2D()
  14.     {}
  15.     virtual String get_caption()const
  16.     {
  17.         return String("Game 8-)");
  18.     }
  19.  
  20.     virtual bool life_cycle(unsigned delta_time_ms)
  21.     {
  22.         return false; // false, ²≥ε ±Φπφαδ ßΦßδΦε≥σΩσ, ≈≥ε Φπ≡α ταΩεφ≈Φδα±ⁿ
  23.     }
  24.     virtual bool render()
  25.     {
  26.         return true;
  27.     }    
  28. protected:
  29.     Hardware2D * hardware;
  30. };
  31.  
  32. Interface2D * create_game(Hardware2D * hardware);
  33.  
  34. #endif //INTERFACE2D_H