Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed APDS_9960 mbed-rtos
Diff: include/cMatrice.h
- Revision:
- 36:f58a566595ad
- Parent:
- 14:6b6aa696680f
- Child:
- 38:418278e5eb6b
--- a/include/cMatrice.h Fri Apr 22 13:49:03 2016 +0000
+++ b/include/cMatrice.h Sun Apr 24 15:47:15 2016 +0000
@@ -5,7 +5,8 @@
#include <vector>
#include "mbed.h"
-// Déclaration de la classe Matrice
+// Définition de la classe cMatrice
+// Classe qui représente la matrice du jeu
class cMatrice {
private:
@@ -13,17 +14,10 @@
unsigned char ** _matrice;
unsigned char _col;
unsigned char _lig;
- ////////////////////////////////////////////////////////
- // Gestion des collisions aux bords
- ////////////////////////////////////////////////////////
-/* bool _collisionBordGauche;
- bool _collisionBordDroit;
- bool _collisionBordBas;
- void controleCollisionBords();
- ////////////////////////////////////////////////////////
- // Gestion des collisions aux pièces
- ////////////////////////////////////////////////////////
- */
+ ////////////////////////////////////////////
+ unsigned char matriceMessage[8][67];
+ unsigned char decalage;
+
protected:
public:
// CONSTRUCTEUR
@@ -47,6 +41,9 @@
void afficherForme(cForme * f, unsigned char c);
void clear();
unsigned char verificationMvt(unsigned char c);
+ /////////////////////////////////////////////////////////
+ void messageAccueil();
+ void decalerMatrice();
};