ServerProtocol.h
上传用户:bsw_2008
上传日期:2013-07-09
资源大小:2446k
文件大小:1k
- // ServerProtocol.h: interface for the CServerProtocol class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SERVERPROTOCOL_H__DA71DD10_9CE7_4E48_B5FB_E48A98D5ECF4__INCLUDED_)
- #define AFX_SERVERPROTOCOL_H__DA71DD10_9CE7_4E48_B5FB_E48A98D5ECF4__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CServerProtocol
- {
- typedef struct POS{
- int x,y;
- };
- public:
- CString message;
- CString toString(char k,int DESK=-1,int DIRECT=-1,int fromX=-1,int fromY=-1,int toX=-1,int toY=-1);
- char Analasys(CString str);
- int direct;
- int desk;
- int board[17][17];
- CString code,name;
- CString chat,sex;
- POS from,to;
- CServerProtocol();
- virtual ~CServerProtocol();
- protected:
- void toMove(CString str,int i);
- void toBoard(CString str,int i);
- };
- #endif // !defined(AFX_SERVERPROTOCOL_H__DA71DD10_9CE7_4E48_B5FB_E48A98D5ECF4__INCLUDED_)