LD

Committer:
Taliarte
Date:
Thu Mar 30 07:23:10 2017 +0000
Revision:
0:c6f0cfb2e2fd
f;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Taliarte 0:c6f0cfb2e2fd 1 #include "mbed.h"
Taliarte 0:c6f0cfb2e2fd 2
Taliarte 0:c6f0cfb2e2fd 3 class Carre {
Taliarte 0:c6f0cfb2e2fd 4 public:
Taliarte 0:c6f0cfb2e2fd 5
Taliarte 0:c6f0cfb2e2fd 6 bool getStatut(){return _statut;} // Fonction retoutnant l'état du carre libre 0 ou pas 1
Taliarte 0:c6f0cfb2e2fd 7 void setcouleur(int couleur){_couleur=couleur; _statut = true;}
Taliarte 0:c6f0cfb2e2fd 8 int getCouleur(){return _couleur;}
Taliarte 0:c6f0cfb2e2fd 9
Taliarte 0:c6f0cfb2e2fd 10
Taliarte 0:c6f0cfb2e2fd 11 Carre(); // Constructeur par défaut
Taliarte 0:c6f0cfb2e2fd 12 Carre(int couleur);
Taliarte 0:c6f0cfb2e2fd 13 ~Carre();
Taliarte 0:c6f0cfb2e2fd 14
Taliarte 0:c6f0cfb2e2fd 15
Taliarte 0:c6f0cfb2e2fd 16 private:
Taliarte 0:c6f0cfb2e2fd 17 bool _statut;
Taliarte 0:c6f0cfb2e2fd 18 int _couleur;
Taliarte 0:c6f0cfb2e2fd 19
Taliarte 0:c6f0cfb2e2fd 20 };