3 Star 2 Fork 2

oisc/Qt 2048

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
numbergrid.h 433 Bytes
一键复制 编辑 原始数据 按行查看 历史
oisc 提交于 2014-06-05 12:42 . Game 2048 目前没有Issue
#ifndef NUMBERGRID_H
#define NUMBERGRID_H
#include <QWidget>
#include <QStyleOption>
#include <QPainter>
#include "tile.h"
class NumberGrid : public QWidget
{
Q_OBJECT
public:
explicit NumberGrid(QWidget *parent = 0);
void mapFromMatrix(int (*matrix)[4]); //从二位数组映射到数字网格界面
signals:
public slots:
private:
void paintEvent(QPaintEvent*);
Tile *tiles[4][4];
};
#endif // NUMBERGRID_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/gitoisc/Qt-2048.git
git@gitee.com:gitoisc/Qt-2048.git
gitoisc
Qt-2048
Qt 2048
master

搜索帮助