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

  1. #ifndef owlwin_h_included  
  2. #define owlwin_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] [owlwin_h] <00000020.00000000> Retained!
  10. // -MQEnd- [Module_Includes] [owlwin_h] <00000020.00000000> 
  11.  
  12. // -MQBeg- [Module_Declarations_1] [owlwin_h] <00000020.00000000> Retained!
  13. // -MQEnd- [Module_Declarations_1] [owlwin_h] <00000020.00000000> 
  14.  
  15. // -MQBeg- [Class_Spec] [TTTWin] <00000000.00000009> 
  16. /******************************************************************************
  17. TTTWin:
  18. TTT Window.
  19. ******************************************************************************/
  20. class TTTWin  : public TFrameWindow , public TTT_Display , public TTT_Controller 
  21. {
  22. // -MQBeg- [Declarations_1] [TTTWin] <00000000.00000009> Retained!
  23. // -MQEnd- [Declarations_1] [TTTWin] <00000000.00000009> 
  24. public:
  25.   // Construct with a TTT Engine.
  26.   TTTWin(TTT_Engine *Engine);
  27.   ~TTTWin();
  28.   // Display welcome message.
  29.   virtual void DisplayWelcomeMsg();
  30.   // Display "Illegal Move".
  31.   virtual void DisplayIllegalMove();
  32.   // DIsplay "You Win".
  33.   virtual void DisplayYouWin();
  34.   // Display "You Lose".
  35.   virtual void DisplayYouLose();
  36.   // Display "Draw".
  37.   virtual void DisplayDraw();
  38.   void DrawGrid();
  39.   virtual void Paint(TDC& /*dc*/, BOOL /*erase*/, TRect& /*rect*/);
  40. protected:
  41.   // Clear the display.
  42.   virtual void ClearDisplay();
  43.   // Display 'X', 'O', or space at row and col.
  44.   virtual void DisplayMove(int Row, int Col, char Move);
  45.   virtual void SetupWindow();
  46.   virtual void EvLButtonDown(UINT, TPoint& pt);
  47. private:
  48.   void CmReset();
  49.   TRect GetRect(int Row, int Col);
  50. private:
  51.   DECLARE_RESPONSE_TABLE(TTTWin);
  52. // -MQBeg- [Declarations_2] [TTTWin] <00000000.00000009> Retained!
  53. // -MQEnd- [Declarations_2] [TTTWin] <00000000.00000009> 
  54. };
  55.  
  56. // -MQEnd- [Class_Spec] [TTTWin] <00000000.00000009> 
  57.  
  58. // -MQBeg- [Module_Declarations_2] [owlwin_h] <00000020.00000000> Retained!
  59. // -MQEnd- [Module_Declarations_2] [owlwin_h] <00000020.00000000> 
  60.  
  61. #endif
  62.