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/cMatrice.h
- Committer:
- clementdoreau
- Date:
- 2016-04-21
- Revision:
- 30:c647da947bd9
- Parent:
- 29:95469b25e187
- Child:
- 32:029962133529
File content as of revision 30:c647da947bd9:
#ifndef CMATRICE_H
#define CMATRICE_H
#include "cForme.h"
#include <vector>
#include "mbed.h"
// Déclaration de la classe Matrice
class cMatrice {
private:
cForme * _pForme;
int ** _matrice;
int _col;
int _lig;
////////////////////////////////////////////////////////
// Gestion des collisions aux bords
////////////////////////////////////////////////////////
/* bool _collisionBordGauche;
bool _collisionBordDroit;
bool _collisionBordBas;
void controleCollisionBords();
////////////////////////////////////////////////////////
// Gestion des collisions aux pièces
////////////////////////////////////////////////////////
*/
protected:
public:
// CONSTRUCTEUR
cMatrice();
cMatrice(int, int);
// DESTRUCTEUR
virtual ~cMatrice();
// GETTER
int getValTab(int l, int c);
int getCol();
int getLig();
cForme* get_pForme();
// SETTER
void setCol(int);
void setLig(int);
void setValTab(int l, int c, unsigned int coul);
// METHODES
void updateMatrice();
void afficherForme(cForme * f, unsigned int c);
void clear();
};
#endif // CMATRICE_H