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

  1. #ifndef tttdisp_h_included  
  2. #define tttdisp_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] [tttdisp_h] <00000017.00000000> Retained!
  10. // -MQEnd- [Module_Includes] [tttdisp_h] <00000017.00000000> 
  11.  
  12. // -MQBeg- [Module_Declarations_1] [tttdisp_h] <00000017.00000000> Retained!
  13. // -MQEnd- [Module_Declarations_1] [tttdisp_h] <00000017.00000000> 
  14.  
  15. // -MQBeg- [Class_Spec] [TTT_Display] <00000000.00000005> 
  16. /******************************************************************************
  17. TTT_Display:
  18. Abstract display for Tic Tac Toe.
  19. ******************************************************************************/
  20. class TTT_Display 
  21. {
  22. // -MQBeg- [Declarations_1] [TTT_Display] <00000000.00000005> Retained!
  23. // -MQEnd- [Declarations_1] [TTT_Display] <00000000.00000005> 
  24. public:
  25.   TTT_Display(TTT_Engine *Engine);
  26.   // Update the display.
  27.   void Update();
  28.   // Override to display welcome message.
  29.   virtual void DisplayWelcomeMsg() = 0;
  30.   // Override to display "Illegal Move".
  31.   virtual void DisplayIllegalMove() = 0;
  32.   // Override to display "You Win".
  33.   virtual void DisplayYouWin() = 0;
  34.   // Override to display "You Lose".
  35.   virtual void DisplayYouLose() = 0;
  36.   // Override to display "Draw".
  37.   virtual void DisplayDraw() = 0;
  38. protected:
  39.   // Override to clear the display.
  40.   virtual void ClearDisplay() = 0;
  41.   // Override to display 'X', 'O', or space at row and col.
  42.   virtual void DisplayMove(int Row, int Col, char Move) = 0;
  43. private:
  44.   // Display user and computer boards.
  45.   void DisplayBoards(int UserBoard, int CompBoard);
  46. private:
  47.   TTT_Engine *theEngine; 
  48. // -MQBeg- [Declarations_2] [TTT_Display] <00000000.00000005> Retained!
  49. // -MQEnd- [Declarations_2] [TTT_Display] <00000000.00000005> 
  50. };
  51.  
  52. // -MQEnd- [Class_Spec] [TTT_Display] <00000000.00000005> 
  53.  
  54. // -MQBeg- [Module_Declarations_2] [tttdisp_h] <00000017.00000000> Retained!
  55. // -MQEnd- [Module_Declarations_2] [tttdisp_h] <00000017.00000000> 
  56.  
  57. #endif
  58.