BastatDoreau / Mbed 2 deprecated MoveYourTetris

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Revision:
30:c647da947bd9
Parent:
29:95469b25e187
Child:
32:029962133529
diff -r 95469b25e187 -r c647da947bd9 include/cLed.h
--- a/include/cLed.h	Wed Apr 20 15:09:43 2016 +0000
+++ b/include/cLed.h	Thu Apr 21 12:33:58 2016 +0000
@@ -9,30 +9,30 @@
 
 class cLed {
 private:
-	unsigned int _positionX;
-	unsigned int _positionY;
-	unsigned int _oldPositionX;
-	unsigned int _oldPositionY;
+	 int _positionX;
+	 int _positionY;
+	 int _oldPositionX;
+	 int _oldPositionY;
 	unsigned int _couleur;
 public:
 	// CONSTRUCTEUR
 	cLed();
-	cLed(unsigned int x, unsigned int y);
-	cLed(unsigned int x, unsigned int y, unsigned int c);
+	cLed( int x,  int y);
+	cLed( int x,  int y, unsigned int c);
 	// GETTERS
 
-	unsigned int getPositionX();
-	unsigned int getPositionY();
-	unsigned int getOldPositionX();
-	unsigned int getOldPositionY();
+	 int getPositionX();
+	 int getPositionY();
+	 int getOldPositionX();
+	 int getOldPositionY();
 	unsigned int getCouleur();
 
 	// SETTER
 
-	void setPositionX(unsigned int);
-	void setPositionY(unsigned int);
-	void setOldPositionX(unsigned int);
-	void setOldPositionY(unsigned int);
+	void setPositionX( int);
+	void setPositionY( int);
+	void setOldPositionX( int);
+	void setOldPositionY( int);
 	void setCouleur(unsigned int c);
 
 	// METHODES