home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / scase.zip / SCASE.Z / TTTCONT.H < prev    next >
C/C++ Source or Header  |  1994-10-17  |  2KB  |  53 lines

  1. #ifndef tttcont_h_included  
  2. #define tttcont_h_included  
  3. /******************************************************************************
  4. *                         ** Company Confidential **
  5. *                  ** Copyright 1994, All rights Reserved **
  6. * %Z%%M% version %I% date:%G%
  7. ******************************************************************************/
  8.  
  9. // -MQBeg- [Module_Includes] [tttcont_h] <00000017.00000000> Retained!
  10. // -MQEnd- [Module_Includes] [tttcont_h] <00000017.00000000> 
  11.  
  12. // -MQBeg- [Module_Declarations_1] [tttcont_h] <00000017.00000000> Retained!
  13. // -MQEnd- [Module_Declarations_1] [tttcont_h] <00000017.00000000> 
  14.  
  15. // -MQBeg- [Class_Spec] [TTT_Controller] <00000000.00000003> 
  16. /******************************************************************************
  17. TTT_Controller:
  18. General event handler and game sequencer.
  19. ******************************************************************************/
  20. class TTT_Controller 
  21. {
  22. // -MQBeg- [Declarations_1] [TTT_Controller] <00000000.00000003> Retained!
  23. // -MQEnd- [Declarations_1] [TTT_Controller] <00000000.00000003> 
  24. public:
  25.   TTT_Controller(TTT_Engine *Engine, TTT_Display *Disp);
  26.   virtual ~TTT_Controller();
  27.   virtual void Start();
  28.   // Handle events from the outside world.
  29.   void HandleEvent(int Event, int Cell = 0);
  30. private:
  31.   // Handle MOVE event.
  32.   void Move(int CellNum);
  33.   // Handle UPDATE event.
  34.   void Update();
  35.   // Handle RESET event.
  36.   void Reset();
  37. public:
  38.   // Current TTT Event Type.
  39.   enum TTT_EVENT { NULL_EVENT, MOVE, UPDATE, RESET, QUIT } CurrentEvent;
  40. protected:
  41.   TTT_Engine *theEngine; 
  42.   TTT_Display *theDisplay; 
  43. // -MQBeg- [Declarations_2] [TTT_Controller] <00000000.00000003> Retained!
  44. // -MQEnd- [Declarations_2] [TTT_Controller] <00000000.00000003> 
  45. };
  46.  
  47. // -MQEnd- [Class_Spec] [TTT_Controller] <00000000.00000003> 
  48.  
  49. // -MQBeg- [Module_Declarations_2] [tttcont_h] <00000017.00000000> Retained!
  50. // -MQEnd- [Module_Declarations_2] [tttcont_h] <00000017.00000000> 
  51.  
  52. #endif
  53.