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/cJeu.h@15:3782eb2bc312, 2016-04-11 (annotated)
- Committer:
- clementdoreau
- Date:
- Mon Apr 11 13:29:31 2016 +0000
- Revision:
- 15:3782eb2bc312
- Parent:
- 14:6b6aa696680f
- Child:
- 16:5c3d61584f51
Ajout de la classe cCollision;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Willheisen | 8:92d0c4961a16 | 1 | #ifndef JEU_H |
Willheisen | 8:92d0c4961a16 | 2 | #define JEU_H |
Willheisen | 8:92d0c4961a16 | 3 | |
Willheisen | 8:92d0c4961a16 | 4 | #include "cMatrice.h" |
Willheisen | 8:92d0c4961a16 | 5 | #include "cCarre.h" |
Willheisen | 8:92d0c4961a16 | 6 | #include "cZed.h" |
Willheisen | 8:92d0c4961a16 | 7 | #include "cEl.h" |
Willheisen | 8:92d0c4961a16 | 8 | #include "cTe.h" |
Willheisen | 8:92d0c4961a16 | 9 | #include "cLigne.h" |
Willheisen | 8:92d0c4961a16 | 10 | |
Willheisen | 8:92d0c4961a16 | 11 | class cJeu |
Willheisen | 8:92d0c4961a16 | 12 | { |
Willheisen | 8:92d0c4961a16 | 13 | private: |
Willheisen | 14:6b6aa696680f | 14 | cMatrice _mat; |
Willheisen | 14:6b6aa696680f | 15 | cForme *_ptrForme; |
Willheisen | 13:336220ac9a8b | 16 | unsigned char _score; |
Willheisen | 8:92d0c4961a16 | 17 | public: |
Willheisen | 8:92d0c4961a16 | 18 | // CONSTRUCTEURS |
Willheisen | 8:92d0c4961a16 | 19 | cJeu(); |
Willheisen | 9:6f3d8b714a59 | 20 | // DESTRUCTEUR |
Willheisen | 9:6f3d8b714a59 | 21 | ~cJeu(); |
Willheisen | 12:7afdbc7465ac | 22 | // SETTERS |
Willheisen | 14:6b6aa696680f | 23 | void set_matrice(cMatrice mat); |
Willheisen | 13:336220ac9a8b | 24 | void set_score(unsigned char sc); |
Willheisen | 12:7afdbc7465ac | 25 | // GETTERS |
Willheisen | 14:6b6aa696680f | 26 | cMatrice get_matrice(); |
Willheisen | 13:336220ac9a8b | 27 | unsigned char get_score(); |
Willheisen | 8:92d0c4961a16 | 28 | // METHODES |
Willheisen | 8:92d0c4961a16 | 29 | void initialiser(); |
Willheisen | 14:6b6aa696680f | 30 | void nouvellePiece(); |
clementdoreau | 15:3782eb2bc312 | 31 | int ligneComplete(); |
Willheisen | 14:6b6aa696680f | 32 | void nouvelleManche(); |
clementdoreau | 15:3782eb2bc312 | 33 | int partieEnCours(); |
Willheisen | 12:7afdbc7465ac | 34 | |
Willheisen | 8:92d0c4961a16 | 35 | }; |
Willheisen | 8:92d0c4961a16 | 36 | |
Willheisen | 8:92d0c4961a16 | 37 | #endif //JEU_H |