Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: N5110 mbed PowerControl
Diff: GameScreen.h
- Revision:
- 1:3305d7e44880
- Parent:
- 0:c2c1df1163f1
- Child:
- 2:d4402bc3dd45
diff -r c2c1df1163f1 -r 3305d7e44880 GameScreen.h
--- 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_;
};