⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qishu.h

📁 一款用C++编写的网络版中国象棋对弈程序源代码
💻 H
字号:
// qishu.h: interface for the qishu class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_QISHU_H__CA401B21_5E93_11D5_8E58_0050BA1AACA1__INCLUDED_)
#define AFX_QISHU_H__CA401B21_5E93_11D5_8E58_0050BA1AACA1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class qishu  
{
public:
	qishu();
	virtual ~qishu();
	int qi[10][9];
	int mydead[16];
	int mydeadcount;
	int otherdeadcount;
	int otherdead[16];
	void initqi();
	void clearqi();
	BOOL win();
	BOOL lose();
	BOOL movbin(int fx,int fy,int tx,int ty);
	BOOL willdead();
	void setmakedead(int x,int y);
	CPoint makedead;
	CPoint suaiwei;
	BOOL jiang;
	BOOL movma(int fx,int fy,int tx,int ty);
	BOOL movxiang(int fx,int fy,int tx,int ty);
	BOOL movshi(int fx,int fy,int tx,int ty);
	BOOL movpao(int fx,int fy,int tx,int ty);
	BOOL movzhu(int fx,int fy,int tx,int ty);
	BOOL movsuai(int fx,int fy,int tx,int ty);
	BOOL willdead(int x,int y);
	BOOL save(int x,int y);
};

#endif // !defined(AFX_QISHU_H__CA401B21_5E93_11D5_8E58_0050BA1AACA1__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -