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
GameScreen.h
- Committer:
- AppleJuice
- Date:
- 2015-03-07
- Revision:
- 1:3305d7e44880
- Parent:
- 0:c2c1df1163f1
- Child:
- 2:d4402bc3dd45
File content as of revision 1:3305d7e44880:
#ifndef GameScreen_H #define GameScreen_H #include "mbed.h" #include "N5110.h" //GameScreen class is an extension of the base Nokia Library Created by Craig Evans // This extension adds functionality relevant to 'Fall Down Game'. // 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){} //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_; }; #endif