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 FXOS8700CQ mbed-rtos
Diff: Game_three/Game_three.h
- Revision:
- 27:4bcdfb212467
- Parent:
- 26:c60becf3f840
- Child:
- 28:a6726a3f8e6d
diff -r c60becf3f840 -r 4bcdfb212467 Game_three/Game_three.h --- a/Game_three/Game_three.h Tue Apr 30 09:40:35 2019 +0000 +++ b/Game_three/Game_three.h Mon May 06 01:28:50 2019 +0000 @@ -25,12 +25,37 @@ /** Deconstructor */ ~Game_three(); - void init(int r); - void draw(N5110 &lcd, int cha); + void init(Gamepad &pad, int r); + void render(N5110 &lcd, int r); + void draw(N5110 &lcd, int r); + void read_input(Gamepad &pad); + void update(Gamepad &pad, int r); + + /** + * @brief Get count value + * @return The current count (int) + * @details The function returns the number of coins that have appeared in the game to terminate the game loop once count reaches 10 + */ + int get_count(); + + int get_score(); + + /** + * @brief Intruction + * @details The function displays the instructions which describe game rules at the beginning of the game + */ + void intro(Gamepad &pad, N5110 &lcd); private: void background(N5110 &lcd); + Score music; + Book book; + Message message; + int _set; + int _select; + int _count; + int _score; };