ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Revision:
43:2cd1cfe07770
Parent:
42:04e326dcf09b
Child:
44:f02510eeb165
--- a/GraphicEngine/GraphicEngine.h	Mon May 18 04:39:06 2020 +0000
+++ b/GraphicEngine/GraphicEngine.h	Mon May 18 06:34:53 2020 +0000
@@ -3,6 +3,8 @@
 
 #include "Frog.h"
 #include "Object.h"
+#include "Vehicle.h"
+#include "WaterSprites.h"
 
 #include "mbed.h"
 #include "N5110.h"
@@ -19,8 +21,10 @@
         } ObjectParam;
         
     public:
+        Frog *frog;
         
         GraphicEngine();
+        GraphicEngine(Frog *frogptr);
     public:
         
         N5110 lcd;
@@ -48,13 +52,13 @@
         void print();
 
         
-        void showIndividualCar(Car *car);
-        void displayCar(DrawCar &size);   
         void drawGoalPost();
 
         //draws the chicken to the LCD screen
-        void showFrog(Frog &frog);
+        void showFrog(float x, int y, int width, int height);
     
+        void drawGoal(int x, int row);
+        
         //draws an individual car to the screen
         void showObj(Object &obj);