![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
contains my game for the embedded systems project 2645
Dependencies: mbed FXOS8700CQQQ
Diff: GameTones/GameTones.h
- Revision:
- 28:39607fb67e88
- Child:
- 29:e660274d8222
diff -r 771d186b1bc8 -r 39607fb67e88 GameTones/GameTones.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GameTones/GameTones.h Wed Apr 24 10:19:07 2019 +0000 @@ -0,0 +1,67 @@ +#ifndef GAMETONES_H +#define GAMETONES_H +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + + + /** tones class + +@brief C++ class containing the tones for the gameplay + +@version 1.0 + +@author Omar Alebiary + +@date April 2019 + +@code + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "RocketRacer.h" + +// objects +Gamepad pad; +RocketRacer rc; +Menus menus; +tests test; + + + +int main(){ + + + setup(); + test.test_Play_Welcome_Melody(pad); + test.test_End_Game_Melody(Gamepad &pad); + + + + + +} + +@endcode +*/ + + +class GameTones{ + + public: + GameTones(); + /** + * @brief method to play the game over melody + * @param pad @details calls the Gamepad object to be passed to the methods called inside this method + */ + void End_Game_Melody(Gamepad &pad); + /** + * @brief method to play the welcome melody + * @param pad @details calls the Gamepad object to be passed to the methods called inside this method + */ + void Play_Welcome_Melody(Gamepad &pad); + +}; + +#endif \ No newline at end of file