📄 i_godoc.h
字号:
// I_goDoc.h : interface of the CI_goDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_I_GODOC_H__AA5896F7_73F8_42AF_AEA2_AF5B314B01A5__INCLUDED_)
#define AFX_I_GODOC_H__AA5896F7_73F8_42AF_AEA2_AF5B314B01A5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CI_goDoc : public CDocument
{
protected: // create from serialization only
CI_goDoc();
DECLARE_DYNCREATE(CI_goDoc)
// Attributes
public:
CPoint pointBegin; //左上角坐标
int nDistance; //每格间距
int nRadium; //点的半径
int r; //围棋半径
int nCount; //下的数目
CRect m_rectEllipse[19][19]; //当前围棋子所在矩形
int nSign[21][21]; //点标志
int nOldSign[21][21]; //吃掉前的标志
int nChainRow[19][20]; //存放水平方向的点标志之间的关系
int nChainCol[20][19]; //存放竖直方向的点标志之间的关系
int nBorder; //棋盘边界宽度
int nBackSign[21][21]; //前次位置标志备份
int nBackTwoTimesBeforeSign[21][21]; //前两次位置标志备份
int nBackThreeTimesBeforeSign[21][21]; //前两次位置标志备份
int nBackOldSign[21][21];
int nBackChainRow[19][20];
int nBackChainCol[20][19];
int nBackCount;
int nBackCountTwoTimesBefore; //前两次统计备份
CPoint pointForGoPrompt; //下子提示点
CPoint pointForRegret; //悔棋按钮
CPoint pointForWhiteCalculate; //显示统计时白棋标志的位置
CPoint pointForBlackCalculate;
CPoint pointForIllegal; //非法提示
int nCalculateWhite; //白子统计
int nCalculateBlack; //黑子统计
int nBackCalculateWhite; //白子统计备份
int nBackCalculateBlack; //黑子统计备份
BOOL fIllegal; //非法走步标志
BOOL fRegretOnlyOnce; //只许悔棋一次
//===============================================//
//位图有关定时器有关
//===============================================//
CBitmap m_BitmapToRight;
CRect m_rectBitmapToRight;
int m_nBitmapToRightHeight;
int m_nBitmapToRightWidth;
CBitmap m_BitmapToLeft;
CRect m_rectBitmapToLeft;
int m_nBitmapToLeftHeight;
int m_nBitmapToLeftWidth;
UINT m_timer; //计时器标志
BOOL m_fAlternate;
BOOL m_fClear;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CI_goDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CI_goDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CI_goDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_I_GODOC_H__AA5896F7_73F8_42AF_AEA2_AF5B314B01A5__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -