home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
scase.zip
/
SCASE.Z
/
OWLWIN.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-17
|
2KB
|
62 lines
#ifndef owlwin_h_included
#define owlwin_h_included
/******************************************************************************
* ** Company Confidential **
* ** Copyright 1994, All rights Reserved **
* %Z%%M% version %I% date:%G%
******************************************************************************/
// -MQBeg- [Module_Includes] [owlwin_h] <00000020.00000000> Retained!
// -MQEnd- [Module_Includes] [owlwin_h] <00000020.00000000>
// -MQBeg- [Module_Declarations_1] [owlwin_h] <00000020.00000000> Retained!
// -MQEnd- [Module_Declarations_1] [owlwin_h] <00000020.00000000>
// -MQBeg- [Class_Spec] [TTTWin] <00000000.00000009>
/******************************************************************************
TTTWin:
TTT Window.
******************************************************************************/
class TTTWin : public TFrameWindow , public TTT_Display , public TTT_Controller
{
// -MQBeg- [Declarations_1] [TTTWin] <00000000.00000009> Retained!
// -MQEnd- [Declarations_1] [TTTWin] <00000000.00000009>
public:
// Construct with a TTT Engine.
TTTWin(TTT_Engine *Engine);
~TTTWin();
// Display welcome message.
virtual void DisplayWelcomeMsg();
// Display "Illegal Move".
virtual void DisplayIllegalMove();
// DIsplay "You Win".
virtual void DisplayYouWin();
// Display "You Lose".
virtual void DisplayYouLose();
// Display "Draw".
virtual void DisplayDraw();
void DrawGrid();
virtual void Paint(TDC& /*dc*/, BOOL /*erase*/, TRect& /*rect*/);
protected:
// Clear the display.
virtual void ClearDisplay();
// Display 'X', 'O', or space at row and col.
virtual void DisplayMove(int Row, int Col, char Move);
virtual void SetupWindow();
virtual void EvLButtonDown(UINT, TPoint& pt);
private:
void CmReset();
TRect GetRect(int Row, int Col);
private:
DECLARE_RESPONSE_TABLE(TTTWin);
// -MQBeg- [Declarations_2] [TTTWin] <00000000.00000009> Retained!
// -MQEnd- [Declarations_2] [TTTWin] <00000000.00000009>
};
// -MQEnd- [Class_Spec] [TTTWin] <00000000.00000009>
// -MQBeg- [Module_Declarations_2] [owlwin_h] <00000020.00000000> Retained!
// -MQEnd- [Module_Declarations_2] [owlwin_h] <00000020.00000000>
#endif