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-20
- Revision:
- 26:0897d27b6961
- Parent:
- 25:b59758a85ed3
- Child:
- 29:95469b25e187
- Child:
- 36:f58a566595ad
File content as of revision 26:0897d27b6961:
#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 "rtos.h"
#include "cmsis_os.h"
#define START_THREAD 1
typedef struct {
int val;
} message_t;
class cJeu
{
// ATTRIBUTS
private:
cMatrice *_mat;
cForme *_ptrForme;
cSPI _spi;
unsigned char _score;
unsigned char _detec;
osMessageQId* _queue ;
osPoolId* _pool;
////////////////////////////////////////////////////
public:
// CONSTRUCTEURS
cJeu();
////
//cJeu(unsigned char, unsigned char);
cJeu(unsigned char, unsigned char);
// DESTRUCTEUR
~cJeu();
// SETTERS
void set_matrice(cMatrice *mat);
void set_score(unsigned char sc);
void setDetec(unsigned char);
void setQueue(osMessageQId*, osPoolId*);
// 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();
};
#endif //JEU_H