📄 doc.h
字号:
// Doc.h : interface of the CBfieldDoc class
//
/////////////////////////////////////////////////////////////////////////////
class CBfieldDoc : public CDocument
{
protected:
int HitCt[2];
BOOL MyTurn;
void NetClose();
void err(int ern);
CArchive *rcv;
CArchive *xmit;
CSocketFile *sockfile;
CSocket hostsocket;
CBattleSocket socket;
int placed;
int mode;
char grid[2][10][10];
CBfieldDoc();
DECLARE_DYNCREATE(CBfieldDoc)
// Attributes
public:
BOOL GetReady(void);
void UpdateStatus(void);
BOOL GetTurn();
int GetMode(void);
void OnClick(int x,int y);
char GetState(int x,int y);
// Operations
public:
void GoAhead(void);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBfieldDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual void OnCloseDocument();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CBfieldDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CBfieldDoc)
afx_msg void OnConnect();
afx_msg void OnHost();
afx_msg void OnUpdateConnect(CCmdUI* pCmdUI);
afx_msg void OnUpdateHost(CCmdUI* pCmdUI);
afx_msg void OnResign();
afx_msg void OnUpdateResign(CCmdUI* pCmdUI);
afx_msg void OnUpdateTurn(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -