ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_PROJECT_EL18KK

Dependencies:   mbed

Revision:
9:e6566d09f087
Parent:
8:5ede90f99a27
Child:
20:c697902b844f
--- a/SplashScreen/Splash.h	Sun May 17 17:59:30 2020 +0000
+++ b/SplashScreen/Splash.h	Sun May 17 23:00:04 2020 +0000
@@ -8,29 +8,39 @@
 
 
 class Splash {
+    private:
+    //objects
+    N5110 *_lcd;
+    Ball *_ball;
+    
     public:
         /** Constructor */
-        Splash();
+        Splash(N5110 &lcd, Ball &ball);
         
         /** Destructor */
         ~Splash();
         
-        void displayInfo(N5110 &lcd);
+        void displayInfo();
         
-        void playIntro(N5110 &lcd,Ball &ball);
+        void playIntro();
         
-        void drawLogo(int x, int y, N5110 &lcd,Ball &ball);
+        void drawLogo(int x, int y);
         
         
     private:
+        void draw_name();
+        
+        void player_enter_animation();
+        
+        void kick_animation();
+        
+        void shot_animation();
+        
+        void contrast_slide();
     
     };
     
-void draw_name(N5110 &lcd, Ball &ball);
-void player_enter_animation(N5110 &lcd, Ball &ball);
-void kick_animation(N5110 &lcd, Ball &ball);
-void shot_animation(N5110 &lcd, Ball &ball);
-void contrast_slide(N5110 &lcd);
+
 
 #endif   
      
\ No newline at end of file