BastatDoreau / Mbed 2 deprecated MoveYourTetris

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Revision:
9:6f3d8b714a59
Parent:
7:4b283e36b147
Child:
10:9ef3f520ff6c
diff -r 92d0c4961a16 -r 6f3d8b714a59 include/cMatrice.h
--- a/include/cMatrice.h	Wed Apr 06 15:41:24 2016 +0000
+++ b/include/cMatrice.h	Wed Apr 06 21:53:55 2016 +0000
@@ -9,25 +9,30 @@
 
 class cMatrice {
 private:
-	unsigned char** _matrice;
-	//unsigned char _matrice [8][8];
-	std::vector<cForme> _formes;
+	unsigned char ** _matrice;
+	unsigned char _col;
+	unsigned char _lig;
 protected:
 public:
 // CONSTRUCTEUR
 	cMatrice();
+	cMatrice(unsigned char c, unsigned char l);
+
+// DESTRUCTEUR
 	virtual ~cMatrice();
 
 // GETTER
-	unsigned char **getMatrice();
+	unsigned char getValTab(unsigned char l, unsigned char c);
+	unsigned char getCol();
+	unsigned char getLig();
 // SETTER
 	void updateMatrice(cForme &);
+	void setCol(unsigned char);
+	void setLig(unsigned char);
 // METHODES
 	void envoyerMatrice();
 	void afficherForme(cForme &, unsigned char c);
 	void ajouterForme(cForme &, unsigned char c);
-	void supprimerForme(cForme & f);
-	cForme getForme(unsigned int i);
 	void clear();
 };