ELEC2645 (2018/19) / Mbed 2 deprecated 2645_Project_SiutingWong201186503

Dependencies:   mbed

Revision:
1:f09ff0ed98fd
Parent:
0:fd8eda608206
Child:
7:193c0fd7afdd
--- a/Wall/Wall.cpp	Wed May 08 18:50:21 2019 +0000
+++ b/Wall/Wall.cpp	Wed May 08 19:44:17 2019 +0000
@@ -21,7 +21,6 @@
 }
 
 void Wall::draw1(N5110 &lcd) {
-    
     // draw wall in screen buffer. 
     lcd.drawRect(_x,0,_width,_height,FILL_BLACK);
 }
@@ -36,13 +35,14 @@
 }
 
 void Wall::reset() {
-    
     _x = 99;
     int uncertainty = rand() % 39;
-    _y = 8 + uncertainty;
+    _height = uncertainty;
 }
 
-
-Vector2D Wall::get_height() {
+int Wall::get_x() {
+    return _x;
+}
+int Wall::get_height() {
     return _height;
 }
\ No newline at end of file