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/cJeu.h
- Revision:
- 16:5c3d61584f51
- Parent:
- 15:3782eb2bc312
- Child:
- 21:f0cf4173ecdb
diff -r 3782eb2bc312 -r 5c3d61584f51 include/cJeu.h --- a/include/cJeu.h Mon Apr 11 13:29:31 2016 +0000 +++ b/include/cJeu.h Mon Apr 11 14:02:02 2016 +0000 @@ -7,12 +7,15 @@ #include "cEl.h" #include "cTe.h" #include "cLigne.h" +#include "cCollision.h" +#include "cSPI.h" class cJeu { private: - cMatrice _mat; + cMatrice *_mat; cForme *_ptrForme; + cSPI _spi; unsigned char _score; public: // CONSTRUCTEURS @@ -20,17 +23,18 @@ // DESTRUCTEUR ~cJeu(); // SETTERS - void set_matrice(cMatrice mat); + void set_matrice(cMatrice *mat); void set_score(unsigned char sc); // GETTERS - cMatrice get_matrice(); + cMatrice* get_matrice(); unsigned char get_score(); // METHODES void initialiser(); void nouvellePiece(); - int ligneComplete(); + unsigned char ligneComplete(); void nouvelleManche(); int partieEnCours(); + void fin(); };