home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 June / Game.EXE_06_2002.iso / Alawar / Lib / 2D / Interface2D.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-04-26  |  633 b   |  34 lines

  1. #ifndef INTERFACE2D_H
  2. #define INTERFACE2D_H
  3.  
  4. class Hardware2D;
  5. #include <String.hpp>
  6. #include <Nocopy.h>
  7.  
  8. class Interface2D : private Nocopy
  9. {
  10. public:    
  11.     explicit Interface2D(Hardware2D * hardware)
  12.         :    hardware( hardware )
  13.     {}
  14.     virtual ~Interface2D()
  15.     {}
  16.     virtual String get_caption()const
  17.     {
  18.         return String("Game 8-)");
  19.     }
  20.     virtual bool life_cycle(float delta_time)
  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