contains my game for the embedded systems project 2645

Dependencies:   mbed FXOS8700CQQQ

Committer:
OmarAlebiary
Date:
Wed Apr 24 10:19:07 2019 +0000
Revision:
28:39607fb67e88
Child:
29:e660274d8222
added doxygen comments to RocketRacer.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
OmarAlebiary 28:39607fb67e88 1 #ifndef GAMETONES_H
OmarAlebiary 28:39607fb67e88 2 #define GAMETONES_H
OmarAlebiary 28:39607fb67e88 3 #include "mbed.h"
OmarAlebiary 28:39607fb67e88 4 #include "N5110.h"
OmarAlebiary 28:39607fb67e88 5 #include "Gamepad.h"
OmarAlebiary 28:39607fb67e88 6
OmarAlebiary 28:39607fb67e88 7
OmarAlebiary 28:39607fb67e88 8 /** tones class
OmarAlebiary 28:39607fb67e88 9
OmarAlebiary 28:39607fb67e88 10 @brief C++ class containing the tones for the gameplay
OmarAlebiary 28:39607fb67e88 11
OmarAlebiary 28:39607fb67e88 12 @version 1.0
OmarAlebiary 28:39607fb67e88 13
OmarAlebiary 28:39607fb67e88 14 @author Omar Alebiary
OmarAlebiary 28:39607fb67e88 15
OmarAlebiary 28:39607fb67e88 16 @date April 2019
OmarAlebiary 28:39607fb67e88 17
OmarAlebiary 28:39607fb67e88 18 @code
OmarAlebiary 28:39607fb67e88 19
OmarAlebiary 28:39607fb67e88 20 #include "mbed.h"
OmarAlebiary 28:39607fb67e88 21 #include "N5110.h"
OmarAlebiary 28:39607fb67e88 22 #include "Gamepad.h"
OmarAlebiary 28:39607fb67e88 23 #include "RocketRacer.h"
OmarAlebiary 28:39607fb67e88 24
OmarAlebiary 28:39607fb67e88 25 // objects
OmarAlebiary 28:39607fb67e88 26 Gamepad pad;
OmarAlebiary 28:39607fb67e88 27 RocketRacer rc;
OmarAlebiary 28:39607fb67e88 28 Menus menus;
OmarAlebiary 28:39607fb67e88 29 tests test;
OmarAlebiary 28:39607fb67e88 30
OmarAlebiary 28:39607fb67e88 31
OmarAlebiary 28:39607fb67e88 32
OmarAlebiary 28:39607fb67e88 33 int main(){
OmarAlebiary 28:39607fb67e88 34
OmarAlebiary 28:39607fb67e88 35
OmarAlebiary 28:39607fb67e88 36 setup();
OmarAlebiary 28:39607fb67e88 37 test.test_Play_Welcome_Melody(pad);
OmarAlebiary 28:39607fb67e88 38 test.test_End_Game_Melody(Gamepad &pad);
OmarAlebiary 28:39607fb67e88 39
OmarAlebiary 28:39607fb67e88 40
OmarAlebiary 28:39607fb67e88 41
OmarAlebiary 28:39607fb67e88 42
OmarAlebiary 28:39607fb67e88 43
OmarAlebiary 28:39607fb67e88 44 }
OmarAlebiary 28:39607fb67e88 45
OmarAlebiary 28:39607fb67e88 46 @endcode
OmarAlebiary 28:39607fb67e88 47 */
OmarAlebiary 28:39607fb67e88 48
OmarAlebiary 28:39607fb67e88 49
OmarAlebiary 28:39607fb67e88 50 class GameTones{
OmarAlebiary 28:39607fb67e88 51
OmarAlebiary 28:39607fb67e88 52 public:
OmarAlebiary 28:39607fb67e88 53 GameTones();
OmarAlebiary 28:39607fb67e88 54 /**
OmarAlebiary 28:39607fb67e88 55 * @brief method to play the game over melody
OmarAlebiary 28:39607fb67e88 56 * @param pad @details calls the Gamepad object to be passed to the methods called inside this method
OmarAlebiary 28:39607fb67e88 57 */
OmarAlebiary 28:39607fb67e88 58 void End_Game_Melody(Gamepad &pad);
OmarAlebiary 28:39607fb67e88 59 /**
OmarAlebiary 28:39607fb67e88 60 * @brief method to play the welcome melody
OmarAlebiary 28:39607fb67e88 61 * @param pad @details calls the Gamepad object to be passed to the methods called inside this method
OmarAlebiary 28:39607fb67e88 62 */
OmarAlebiary 28:39607fb67e88 63 void Play_Welcome_Melody(Gamepad &pad);
OmarAlebiary 28:39607fb67e88 64
OmarAlebiary 28:39607fb67e88 65 };
OmarAlebiary 28:39607fb67e88 66
OmarAlebiary 28:39607fb67e88 67 #endif