BastatDoreau / Mbed 2 deprecated MoveYourTetris

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Revision:
7:4b283e36b147
Parent:
4:b7a46af55574
Child:
10:9ef3f520ff6c
--- a/include/cForme.h	Thu Mar 31 11:24:34 2016 +0000
+++ b/include/cForme.h	Fri Apr 01 14:30:30 2016 +0000
@@ -3,32 +3,38 @@
 
 #include "cLed.h"
 
-class cForme
-{
+class cForme {
 
 protected:
-    unsigned char _orientation; // 4 orientations : rotation de 90° --> de 1 à 4
-    unsigned char _positionX;
-    unsigned char _positionY;
-    cLed _Leds[4];// LEDS
+	unsigned char _orientation; // 4 orientations : rotation de 90° --> de 1 à 4
+	unsigned char _positionX;
+	unsigned char _positionY;
+	cLed _Leds[4]; // LEDS
 private:
 
 public:
-    // CONSTRUCTEURS
-    cForme();
-    // GETTERS
-    unsigned char getOrientation();
-    unsigned char getPositionX();
-    unsigned char getPositionY();
-    cLed getLed(unsigned char i);
-    // SETTERS
-    void setOrientation(unsigned char orientation);
-    void setPositionX(unsigned char x);
-    void setPositionY(unsigned char y);
-    //virtual void afficherForme();
+	// CONSTRUCTEURS
+	cForme();
+	// DESTRUCTEURS
+	virtual ~cForme();
+	// GETTERS
+	unsigned char getOrientation();
+	unsigned char getPositionX();
+	unsigned char getPositionY();
+	cLed getLed(unsigned char i);
+	// SETTERS
+	void setOrientation(unsigned char orientation);
+	void setPositionX(unsigned char x);
+	void setPositionY(unsigned char y);
+	//virtual void afficherForme();
 
+	// METHODES
+	void deplacementBas();
+	void deplacementDroite();
+	void deplacementGauche();
+	// METHODES VIRTUELLES
+	virtual void rotationHoraire();
 
 };
 
-
 #endif