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:
- 9:6f3d8b714a59
- Parent:
- 7:4b283e36b147
- Child:
- 10:9ef3f520ff6c
--- 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();
};