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:
- 14:6b6aa696680f
- Parent:
- 13:336220ac9a8b
- Child:
- 15:3782eb2bc312
--- a/include/cJeu.h Sun Apr 10 21:54:27 2016 +0000 +++ b/include/cJeu.h Mon Apr 11 11:36:14 2016 +0000 @@ -11,7 +11,8 @@ class cJeu { private: - cMatrice *_mat; + cMatrice _mat; + cForme *_ptrForme; unsigned char _score; public: // CONSTRUCTEURS @@ -19,16 +20,17 @@ // 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(); - cForme* nouvellePiece(); - void disparitionLigne(); - unsigned char ligneComplete(); + void nouvellePiece(); + void ligneComplete(); + void nouvelleManche(); + };