Thomas Davies / Mbed 2 deprecated LetTheBallDrop

Dependencies:   N5110 mbed PowerControl

Revision:
8:ebddb721f1ee
Parent:
6:b1c54f8b28fe
Child:
10:d8ef8633bd98
--- a/GameScreen.h	Tue Mar 10 03:07:11 2015 +0000
+++ b/GameScreen.h	Tue Mar 10 21:17:58 2015 +0000
@@ -36,17 +36,17 @@
     explicit GameScreen(PinName pwrPin, PinName scePin, PinName rstPin, PinName dcPin, PinName mosiPin, PinName sclkPin, PinName ledPin)
         :N5110(pwrPin, scePin,rstPin,dcPin,mosiPin,sclkPin,ledPin) {}   //classes needed are private...dont want to steal code so we'll just inheret constructor aswell :)
 
-    void Initialize(Ball ball);
-
-    //draw horizontal platform where y top pixel layer location. x hole location
+    void Initialize();
     void printString(const char * str,int x,int y);     //overide base class
     void drawBall();
-    void eraseBall();
-    void createAllPlatforms();
+    void eraseBall();    
     void drawAllPlatforms();
     void eraseAllPlatforms();
     void shiftAllPlatforms();     //move all platforms up 1 pixel
     Platform nextClosestPlatform(int y);
+    void displayStartScreen();
+    void displayInstructionScreen();
+    void displayCountdown();
     
     //Write Access, set
     void        setBallPos(int x, int y)        { playerBall.x = x; playerBall.y = y; }
@@ -62,6 +62,7 @@
     int         getBallY()                      { return playerBall.y;      }
     
 private:
+    void createAllPlatforms();
     void drawPlatform(int x,int y);
     void erasePlatform(int y);
     void freeAllPlatforms();        //garbage cleanup