![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
contains my game for the embedded systems project 2645
Dependencies: mbed FXOS8700CQQQ
Diff: GameEngine/RocketRacer.h
- Revision:
- 30:c5060010a1e6
- Parent:
- 29:e660274d8222
- Child:
- 31:4d4a9d78cae5
--- a/GameEngine/RocketRacer.h Thu Apr 25 10:44:53 2019 +0000 +++ b/GameEngine/RocketRacer.h Sat Apr 27 02:00:28 2019 +0000 @@ -7,11 +7,11 @@ #include "Gamepad.h" #include "GameSprites.h" #include "GameTones.h" - +#include "FXOS8700CQ.h" /** RocketRacer class -@brief C++ class containing the game methods and the interface +@brief University of Leeds,C++ class containing the game methods and the interface @version 1.0 @@ -187,6 +187,18 @@ * @param Init_position @details initial position of the player(as an int) */ void set_init_position(int Init_position); + /** + * @brief checks accelerometer positon + * @param Init_position @details initial position of the player(as an int) + * @param pad @details calls the Gamepad object to be passed to the methods called inside this method + */ + void accelerometer_position(Gamepad &pad); + /** + * @brief method that has the game loop which calls all the methods and control with accelerometer + * @param lcd @details calls the lcd object to be passed to the methods called inside this method + * @param pad @details calls the Gamepad object to be passed to the methods called inside this method + */ + void Game_Loop_accelerometer(N5110 &lcd,Gamepad &pad); private: @@ -201,6 +213,7 @@ GameTones tones; + }; #endif \ No newline at end of file