ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Revision:
5:6e3afee7eac3
Parent:
4:aae7f8d4ab78
Child:
8:52794de935b2
--- a/GraphicEngine/GraphicEngine.h	Wed May 06 16:53:18 2020 +0000
+++ b/GraphicEngine/GraphicEngine.h	Thu May 07 05:35:50 2020 +0000
@@ -11,31 +11,45 @@
 #include <vector>
 
 class GraphicEngine {
+    public:
+        typedef struct {
+            int x;
+            int y;
+            int width;
+            int height;
+            
+        } DrawCar;
     
     public:
-    Car *car1;
-    Chicken *chick;
     
-    GraphicEngine(Chicken *chicken);
-    
-    N5110 lcd;
-    
-    //initialize the LCD
-    void init();
+        Car *car1;
+        Chicken *chick;
+        
+        GraphicEngine(Chicken *chicken);
+        
+        N5110 lcd;
+        
+        //initialize the LCD
+        void init();
+        
+        //draws the chicken to the LCD screen
+        void showChicken();
     
-    //draws the chicken to the LCD screen
-    void showChicken();
+        //draws an individual car to the screen
+        void showCar(Car *car);
+            
+        void clear();
+        
+        void refresh();
+        
+        void contrast();
+        
+        void backLightOn();
+        void printTest();
+        
+        void showIndividualCar(Car *car);
+        void displayCar(DrawCar &size);
 
-    //draws an individual car to the screen
-    void showCar(Car *car);
-    
-    void clear();
-    
-    void refresh();
-    
-    void contrast();
-    
-    void backLightOn();
     
 };