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:
- clementdoreau
- Date:
- 2016-04-15
- Revision:
- 23:298a1314fc81
- Parent:
- 21:f0cf4173ecdb
- Child:
- 24:9f3005f1ba96
File content as of revision 23:298a1314fc81:
#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" #define START_THREAD 1 class cJeu { private: cMatrice *_mat; cForme *_ptrForme; cSPI _spi; cBoussole *_boussole; unsigned char *_detec; //////////////////////////////////////////////////// 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(); unsigned char *getDetec(); // METHODES void initialiser(); void nouvellePiece(); unsigned char ligneComplete(); void nouvelleManche(); int partieEnCours(); void fin(); void detectionMouvement(void const *args); }; #endif //JEU_H