?? table.h
字號:
#ifndef CLASS_TABLE
#define CLASS_TABLE
#include "Game.h"
#include "FiveSocket.h"
class CTable : public CWnd
{
CImageList m_iml; // 棋子圖像
int m_color; // 玩家顏色
BOOL m_bWait; // 等待標(biāo)志
void Draw(int x, int y, int color);
CGame *m_pGame; // 游戲模式指針
public:
void PlayAgain();
void SetMenuState( BOOL bEnable );
void GiveUp();
void RestoreWait();
BOOL m_bOldWait; // 先前的等待標(biāo)志
void Chat( LPCTSTR lpszMsg );
// 是否連接網(wǎng)絡(luò)(客戶端使用)
BOOL m_bConnected;
// 我方名字
CString m_strMe;
// 對方名字
CString m_strAgainst;
// 傳輸用套接字
CFiveSocket m_conn;
CFiveSocket m_sock;
int m_data[15][15]; // 棋盤數(shù)據(jù)
CTable();
~CTable();
void Clear( BOOL bWait );
void SetColor(int color);
int GetColor() const;
BOOL SetWait( BOOL bWait );
void SetData( int x, int y, int color );
BOOL Win(int color) const;
void DrawGame();
void SetGameMode( int nGameMode );
void Back();
void Over();
void Accept( int nGameMode );
void Connect( int nGameMode );
void Receive();
protected:
afx_msg void OnPaint();
afx_msg void OnLButtonUp( UINT nFlags, CPoint point );
DECLARE_MESSAGE_MAP()
};
#endif // CLASS_TABLE
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -