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
include/cMatrice.h
- Committer:
- clementdoreau
- Date:
- 2016-04-01
- Revision:
- 7:4b283e36b147
- Parent:
- 5:d6b0bf27bac6
- Child:
- 9:6f3d8b714a59
File content as of revision 7:4b283e36b147:
#ifndef CMATRICE_H
#define CMATRICE_H
#include "cForme.h"
#include <vector>
#include "mbed.h"
// Déclaration de la classe Matrice
class cMatrice {
private:
unsigned char** _matrice;
//unsigned char _matrice [8][8];
std::vector<cForme> _formes;
protected:
public:
// CONSTRUCTEUR
cMatrice();
virtual ~cMatrice();
// GETTER
unsigned char **getMatrice();
// SETTER
void updateMatrice(cForme &);
// 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();
};
#endif // CMATRICE_H