BastatDoreau / Mbed 2 deprecated MoveYourTetris

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

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