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

📄 chesswhite.h

📁 在linux下使用qt来开发的五子棋
💻 H
字号:

#ifndef CHESSWHITE_H
#define CHESSWHITE_H

#include <QLabel>
#include "myQFrame.h"
#include "board.h"
#include "chess.h"

class Board;

class ChessWhite : public Chess
{

private:	

protected:	
	//char color[];
	//int topleft=1,top=2,topright=3,middleleft=4,middleright=5,underleft=6,under=7,underright=8;		//8个方向,direction
	//int direction;											

	/* 析构和构造直接继承 */
	//void SaveChess( int a, int b );

public:
	ChessWhite(int chessx, int chessy, Board *pb);
	~ChessWhite();
	/* 析构和构造直接继承 */
	//Chess( int chessx, int chessy, Board *pb );
	//~Chess();

	//bool Eraserchess();									//悔棋,擦除

	char clstab();											//类型标识,区分黑白棋,myQFrame.h中已声明为虚
	int Check( int dire, int count );						//按方向查找相同颜色的棋子,返回值为棋子数,输入参数为方向dire[int],已统计的相同棋子数count[int]
	bool DrawChess( int a, int b );							//根据位置,画棋子
	void DrawLaterChess( int &dx, int &dy );				//画过期的棋子

};

#endif

⌨️ 快捷键说明

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