Thomas Davies / Mbed 2 deprecated LetTheBallDrop

Dependencies:   N5110 mbed PowerControl

Revision:
1:3305d7e44880
Parent:
0:c2c1df1163f1
Child:
2:d4402bc3dd45
--- a/GameScreen.h	Sat Mar 07 01:49:37 2015 +0000
+++ b/GameScreen.h	Sat Mar 07 09:58:29 2015 +0000
@@ -9,13 +9,26 @@
 // drawPlatform, drawBall, drawScore etc....
 
 class GameScreen: public N5110::N5110
-{
+{   
 public:
     explicit GameScreen(PinName pwrPin, PinName scePin, PinName rstPin, PinName dcPin, PinName mosiPin, PinName sclkPin, PinName ledPin)
-        :N5110(pwrPin, scePin,rstPin,dcPin,mosiPin,sclkPin,ledPin){}    //is this ideal? no... did it happen? yes...
-
+       :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();
+    
+    //draw horizontal platform where y top pixel layer location. x hole location
+    void drawPlatform(int x,int y);
+    
+    //Accessors
+    int maxY(){ return maxY_; }
+    int maxX(){ return maxX_; }
     
     
+private:
+    int platGapSize;
+    int platThickness;
+    int maxX_;
+    int maxY_;
     
 };