From 5275155982c1d38dfe8dec5dc9d59cf85945defd Mon Sep 17 00:00:00 2001 From: jbreitwi <josephine.breitwiller@etu.ec-lyon.fr> Date: Mon, 31 Mar 2025 11:29:00 +0200 Subject: [PATCH] debut tiles --- applicationQT2048/gamemanager.h | 4 ++++ applicationQT2048/historique.json | 0 2 files changed, 4 insertions(+) delete mode 100644 applicationQT2048/historique.json diff --git a/applicationQT2048/gamemanager.h b/applicationQT2048/gamemanager.h index 7fe650a..ae284e7 100644 --- a/applicationQT2048/gamemanager.h +++ b/applicationQT2048/gamemanager.h @@ -41,6 +41,10 @@ private: int m_score; int m_bestScore; + QMap<int, QColor> tileColors; // Dictionnaire des couleurs (couleurs sélécctionées initaliser a normal) + + Q_INVOKABLE void initializeTileColors(); // Initialisation des QMap pour les différents jeux de couleurs et intialisation aux couleur normal + Q_INVOKABLE void addRandomElement(); Q_INVOKABLE void enregistrerPartie(QString partieName); diff --git a/applicationQT2048/historique.json b/applicationQT2048/historique.json deleted file mode 100644 index e69de29..0000000 -- GitLab