Skip to content
Snippets Groups Projects
Commit 2f489c99 authored by Jolibois Simon's avatar Jolibois Simon
Browse files

Delete grille.h

parent 0c78bb65
No related branches found
No related tags found
No related merge requests found
#ifndef GRILLE_H
#define GRILLE_H
#include <QObject>
#include <iostream>
#include <math.h>
#include <QFile>
#include <QStringList>
#include <QDebug>
#include <algorithm>
#include <string>
using namespace std;
class Grille //: public QObject
{
// Q_OBJECT
public:
Grille(int vd=0);
Grille(const Grille &D);
~Grille();
// Q_PROPERTY(QList<QString> tableauQML READ readGrille NOTIFY grilleChanged)
Grille& operator= (const Grille &D); // opérateur d'affectation
friend ostream& operator<< (ostream& sortie, Grille& V);
void Print();
void Init(int value);
void Set(int x, int y, int value);
int Get(int x, int y);
void EssaiJoueur(); // on regarde si la case (x_actif,y_actif) a la valeur chiffre_actif
void SelectChiffre(int c);
void SelectCase(int x,int y);
bool TestWin();
private:
int** T; // c'est le tableau que l'on complète
int chiffre_actif; //la valeur sélectionnée à l'écran
int x_actif; //abscisse case active
int y_actif; //ordonnée case active
bool win; // la partie est gagnée ou non
// Méthode privée (factorisation de code)
void Alloc();
void Free();
/*
signals :
void grilleChanged();
*/
};
#endif // GRILLE_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment