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
- Committer:
- Willheisen
- Date:
- 2016-04-14
- Revision:
- 21:f0cf4173ecdb
- Parent:
- 16:5c3d61584f51
- Child:
- 23:298a1314fc81
File content as of revision 21:f0cf4173ecdb:
#ifndef JEU_H #define JEU_H #include "cMatrice.h" #include "cCarre.h" #include "cZed.h" #include "cEl.h" #include "cTe.h" #include "cLigne.h" #include "cCollision.h" #include "cSPI.h" #include "cBoussole.h" class cJeu { private: cMatrice *_mat; cForme *_ptrForme; cSPI _spi; cBoussole *_boussole; //////////////////////////////////////////////////// Ticker tick; //InterruptIn _interrupt; unsigned char _score; public: // CONSTRUCTEURS cJeu(); cJeu(unsigned char, unsigned char); // DESTRUCTEUR ~cJeu(); // SETTERS void set_matrice(cMatrice *mat); void set_score(unsigned char sc); // GETTERS cMatrice* get_matrice(); unsigned char get_score(); // METHODES void initialiser(); void nouvellePiece(); unsigned char ligneComplete(); void nouvelleManche(); int partieEnCours(); void fin(); }; #endif //JEU_H