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:
- Willheisen
- Date:
- 2016-04-22
- Revision:
- 33:a6f0be429ce0
- Parent:
- 32:029962133529
File content as of revision 33:a6f0be429ce0:
#ifndef CMATRICE_H
#define CMATRICE_H
#include "cForme.h"
#include "mbed.h"
// Définition de la classe cMatrice
// Classe qui représente la matrice du jeu
class cMatrice {
// ATTRIBUTS
private:
cForme * _pForme;
int ** _matrice;
int _col;
int _lig;
public:
// CONSTRUCTEURS
cMatrice();
cMatrice(int, int);
// DESTRUCTEUR
~cMatrice();
// GETTERS
int getValTab(int c, int l);
int getCol();
int getLig();
cForme* get_pForme();
// SETTERS
void setCol(int);
void setLig(int);
void setValTab(int c, int l, unsigned int coul);
// METHODES
void updateMatrice();
void afficherForme(cForme * f, unsigned int c);
void clear();
};
#endif // CMATRICE_H