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

  1. #ifndef stdiodsp_h_included  
  2. #define stdiodsp_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] [stdiodsp_h] <0000001B.00000000> Retained!
  10. // -MQEnd- [Module_Includes] [stdiodsp_h] <0000001B.00000000> 
  11.  
  12. // -MQBeg- [Module_Declarations_1] [stdiodsp_h] <0000001B.00000000> Retained!
  13. // -MQEnd- [Module_Declarations_1] [stdiodsp_h] <0000001B.00000000> 
  14.  
  15. // -MQBeg- [Class_Spec] [TTT_StdioDisplay] <00000000.00000009> 
  16. /******************************************************************************
  17. TTT_StdioDisplay:
  18. Provides TicTacToe display on stdio device.
  19. ******************************************************************************/
  20. class TTT_StdioDisplay  : public TTT_Display 
  21. {
  22. // -MQBeg- [Declarations_1] [TTT_StdioDisplay] <00000000.00000009> Retained!
  23. // -MQEnd- [Declarations_1] [TTT_StdioDisplay] <00000000.00000009> 
  24. public:
  25.   // Provide a TTT engine when constructing.
  26.   TTT_StdioDisplay(TTT_Engine *Engine);
  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. protected:
  38.   // Clear display does absolutely nothing in the Stdio version!!!
  39.   virtual void ClearDisplay();
  40.   // Display 'X', 'O' or space at row and col.
  41.   virtual void DisplayMove(int Row, int Col, char Move);
  42. // -MQBeg- [Declarations_2] [TTT_StdioDisplay] <00000000.00000009> Retained!
  43. // -MQEnd- [Declarations_2] [TTT_StdioDisplay] <00000000.00000009> 
  44. };
  45.  
  46. inline void
  47. TTT_StdioDisplay::ClearDisplay()
  48. {
  49. // -MQBeg- [Op_Body] [TTT_StdioDisplay::ClearDisplay] <0000002F.00000018> Retained!
  50. // -MQEnd- [Op_Body] [TTT_StdioDisplay::ClearDisplay] <0000002F.00000018> 
  51. }
  52.  
  53. // -MQEnd- [Class_Spec] [TTT_StdioDisplay] <00000000.00000009> 
  54.  
  55. // -MQBeg- [Module_Declarations_2] [stdiodsp_h] <0000001B.00000000> Retained!
  56. // -MQEnd- [Module_Declarations_2] [stdiodsp_h] <0000001B.00000000> 
  57.  
  58. #endif
  59.