You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
863 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <stdlib.h>
#include <time.h>
#include <vector>
#include <QDebug>
#include <QGenericMatrix>
#include <QMainWindow>
#include <QMessageBox>
#include <QPushButton>
#include <QSettings>
#include "samegame.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
// initialisation functions
void initialiseGame();
void initialiseGameGrid();
void initialiseWindow();
void initialiseMenuBar();
private slots:
void buttonPressed(QPushButton *button);
void newGame();
private:
Ui::MainWindow *ui;
const int rows;
const int columns;
const double max_width;
const double max_height;
SameGame *game;
};
#endif // MAINWINDOW_H