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:
- 29:95469b25e187
- Parent:
- 14:6b6aa696680f
- Child:
- 30:c647da947bd9
--- a/include/cMatrice.h Wed Apr 20 14:18:18 2016 +0000
+++ b/include/cMatrice.h Wed Apr 20 15:09:43 2016 +0000
@@ -10,9 +10,9 @@
class cMatrice {
private:
cForme * _pForme;
- unsigned char ** _matrice;
- unsigned char _col;
- unsigned char _lig;
+ unsigned int ** _matrice;
+ unsigned int _col;
+ unsigned int _lig;
////////////////////////////////////////////////////////
// Gestion des collisions aux bords
////////////////////////////////////////////////////////
@@ -28,25 +28,25 @@
public:
// CONSTRUCTEUR
cMatrice();
- cMatrice(unsigned char, unsigned char);
+ cMatrice(unsigned int, unsigned int);
// DESTRUCTEUR
virtual ~cMatrice();
// GETTER
- unsigned char getValTab(unsigned char l, unsigned char c);
- unsigned char getCol();
- unsigned char getLig();
+ unsigned int getValTab(unsigned int l, unsigned int c);
+ unsigned int getCol();
+ unsigned int getLig();
cForme* get_pForme();
// SETTER
- void setCol(unsigned char);
- void setLig(unsigned char);
- void setValTab(unsigned char l, unsigned char c, unsigned char coul);
+ void setCol(unsigned int);
+ void setLig(unsigned int);
+ void setValTab(unsigned int l, unsigned int c, unsigned int coul);
// METHODES
void updateMatrice();
- void afficherForme(cForme * f, unsigned char c);
+ void afficherForme(cForme * f, unsigned int c);
void clear();
- unsigned char verificationMvt(unsigned char c);
+ unsigned int verificationMvt(unsigned int c);
};