LD
Diff: Carre.h
- Revision:
- 0:c6f0cfb2e2fd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Carre.h Thu Mar 30 07:23:10 2017 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +class Carre { + public: + + bool getStatut(){return _statut;} // Fonction retoutnant l'état du carre libre 0 ou pas 1 + void setcouleur(int couleur){_couleur=couleur; _statut = true;} + int getCouleur(){return _couleur;} + + + Carre(); // Constructeur par défaut + Carre(int couleur); + ~Carre(); + + + private: + bool _statut; + int _couleur; + +}; \ No newline at end of file