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.
Fork of fy15raf by
GameEngine/GameEngine.h
- Committer:
- RehamFaqehi
- Date:
- 2018-05-03
- Revision:
- 11:cb48d596aa3e
- Parent:
- 9:e70179ff61c5
- Child:
- 12:4d7f1349d796
File content as of revision 11:cb48d596aa3e:
#ifndef GameEngine_H #define GameEngine_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Rocket.h" #include "Asteroid.h" class GameEngine { public: GameEngine(); ~GameEngine(); void init(); void read_input(Gamepad &g_pad); void draw(N5110 &lcd); void update(Gamepad &pad, N5110 &lcd); void print_scores(N5110 &lcd); void print_scores1(N5110 &lcd); int get_gameOver1(); /* void sec(); int get_time(); void print_sec(N5110 &lcd); Ticker ticker; void timer_ist(); void print_sec_over(N5110 &lcd);*/ private: Rocket _rocket; Asteroid _asteroid1; Asteroid _asteroid2; Asteroid _asteroid3; Direction _d; float _mag; void check_goal(Gamepad &pad); int score; int gameOver; // int Sec; //int g_timer_flag; }; #endif