Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Table.h
Package: 毕业论文--五子棋.zip [view]
Upload User: fjjkzlh
Upload Date: 2010-04-06
Package Size: 469k
Code Size: 1k
Category:
Chess Poker games
Development Platform:
Visual C++
- #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; // 等待标志
- 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; // 先前的等待标志
- void Chat( LPCTSTR lpszMsg );
- // 是否连接网络(客户端使用)
- BOOL m_bConnected;
- // 我方名字
- CString m_strMe;
- // 对方名字
- CString m_strAgainst;
- // 传输用套接字
- CFiveSocket m_conn;
- CFiveSocket m_sock;
- int m_data[15][15]; // 棋盘数据
- 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