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

  1. #ifndef cxvtttwn_h_included  
  2. #define cxvtttwn_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] [cxvtttwn_h] <00000028.00000000> Retained!
  10. // -MQEnd- [Module_Includes] [cxvtttwn_h] <00000028.00000000> 
  11.  
  12. // -MQBeg- [Module_Declarations_1] [cxvtttwn_h] <00000028.00000000> Retained!
  13. // -MQEnd- [Module_Declarations_1] [cxvtttwn_h] <00000028.00000000> 
  14.  
  15. // -MQBeg- [Class_Spec] [CXVTTTTWin] <00000000.00000013> 
  16. /******************************************************************************
  17. CXVTTTTWin:
  18. TTT Window
  19. ******************************************************************************/
  20. class CXVTTTTWin  : public TTT_Controller , public TTT_Display , public CWindow 
  21. {
  22. // -MQBeg- [Declarations_1] [CXVTTTTWin] <00000000.00000013> Retained!
  23. // -MQEnd- [Declarations_1] [CXVTTTTWin] <00000000.00000013> 
  24. public:
  25.   CXVTTTTWin(TTT_Engine *Engine, CDocument *theDocument, const CRect& theRegion, const CStringRW& theTitle = NULLString, long theWindowAttributes=WSF_NONE, WIN_TYPE theWindowType=W_DOC, int theMenuBarId=MENU_BAR_RID);
  26.   ~CXVTTTTWin();
  27.   // Display welcome message.
  28.   virtual void DisplayWelcomeMsg();
  29.   // Display "Illegal Move".
  30.   virtual void DisplayIllegalMove();
  31.   // Display "You Win".
  32.   virtual void DisplayYouWin();
  33.   // Display "You Lose".
  34.   virtual void DisplayYouLose();
  35.   // Display "Draw".
  36.   virtual void DisplayDraw();
  37.   void DrawGrid();
  38.   virtual void Draw(const CRect& /*theClippingRegion*/ = MAXRect);
  39.   virtual void DoMouseDown(CPoint theLocation, short /*theButton*/, BOOLEAN /*isShiftKey*/, BOOLEAN /*isControlKey*/);
  40.   virtual void DoMenuCommand(MENU_TAG theMenuItem, BOOLEAN isShiftKey, BOOLEAN isControlKey);
  41. protected:
  42.   // Clear the display.
  43.   virtual void ClearDisplay();
  44.   // Display 'X', 'O', or space at row and col.
  45.   virtual void DisplayMove(int Row, int Col, char Move);
  46. private:
  47.   CRect GetRect(int Row, int Col);
  48. // -MQBeg- [Declarations_2] [CXVTTTTWin] <00000000.00000013> Retained!
  49. // -MQEnd- [Declarations_2] [CXVTTTTWin] <00000000.00000013> 
  50. };
  51.  
  52. // -MQEnd- [Class_Spec] [CXVTTTTWin] <00000000.00000013> 
  53.  
  54. // -MQBeg- [Module_Declarations_2] [cxvtttwn_h] <00000028.00000000> Retained!
  55. // -MQEnd- [Module_Declarations_2] [cxvtttwn_h] <00000028.00000000> 
  56.  
  57. #endif
  58.