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: mbed
GraphicEngine/GraphicEngine.h
- Committer:
- el19tb
- Date:
- 2020-05-25
- Revision:
- 53:b6bb4dab7823
- Parent:
- 52:1145e99264ea
- Child:
- 56:2797166656e0
File content as of revision 53:b6bb4dab7823:
#ifndef GRAPHICENGINE_H #define GRAPHICENGINE_H #include "Frog.h" #include "Object.h" #include "Vehicle.h" #include "WaterSprites.h" #include "Background.h" #include "Frogger.h" #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include <vector> class GraphicEngine { public: typedef struct { float x; int y; } ObjectParam; public: //Frog *frog; //GraphicEngine(); GraphicEngine(); public: N5110 lcd; public: //initialize the LCD void init(); // clear lcd screen void clear(); // refresh to the next state void refresh(); // set contrast void contrast(); // turn on backlight of lcd void backLightOn(); void printTest(); void printLoser(); void print(); void drawDangerZone(); void drawGoalPost(); void drawMenu(); void drawPointer(int y); void getPointerPos(int sel); //draws the chicken to the LCD screen void showFrog(float x, int y, int width, int height, int state); void drawVoidBackGround(); void drawEndPost(int x); void printCongrats(); void displayBonusObjects(int x, int y, char c); //draws an individual car to the screen void showObj(Object *obj, int state); void newLevelIntro(); void newLevel1(); void newLevel2(); void newLevel3(); void newLevelGo(); void displayTurtles(int x, int y, char c, int turtle_state); void drawSafetyLanes(); void displayLog(int x, int y, char c); void displayVehicle(int x, int y, char c); void drawTutor1(); void drawTutor2(); void drawTutor3(); }; #endif