qishu.h
来自「一款用C++编写的网络版中国象棋对弈程序源代码」· C头文件 代码 · 共 43 行
H
43 行
// 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 + =
减小字号Ctrl + -
显示快捷键?