The game is finished

Dependencies:   mbed Gamepad N5110 mbed-rtos

Committer:
RexRoshan
Date:
Thu May 09 14:23:35 2019 +0000
Revision:
14:c7302ffe6eab
Parent:
6:1fcfd331c047
Final Modification

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RexRoshan 0:99fa5a619081 1 #ifndef MUSIC_H
RexRoshan 0:99fa5a619081 2 #define MUSIC_H
RexRoshan 0:99fa5a619081 3
RexRoshan 0:99fa5a619081 4 #include "Gamepad.h"
RexRoshan 0:99fa5a619081 5 #include "mbed.h"
RexRoshan 0:99fa5a619081 6 #include "rtos.h"
RexRoshan 0:99fa5a619081 7
RexRoshan 6:1fcfd331c047 8 /** Music Class
RexRoshan 6:1fcfd331c047 9 * @brief Plays songs
RexRoshan 6:1fcfd331c047 10 * @author Rex Roshan Raj
RexRoshan 6:1fcfd331c047 11 */
RexRoshan 0:99fa5a619081 12 class Music
RexRoshan 0:99fa5a619081 13 {
RexRoshan 0:99fa5a619081 14
RexRoshan 0:99fa5a619081 15 public:
RexRoshan 6:1fcfd331c047 16
RexRoshan 6:1fcfd331c047 17 /** Constructor */
RexRoshan 0:99fa5a619081 18 Music();
RexRoshan 6:1fcfd331c047 19
RexRoshan 6:1fcfd331c047 20 /** Destructor */
RexRoshan 0:99fa5a619081 21 ~Music();
RexRoshan 0:99fa5a619081 22
RexRoshan 6:1fcfd331c047 23 /** Plays introduction song
RexRoshan 6:1fcfd331c047 24 * @param Gamepad pad
RexRoshan 6:1fcfd331c047 25 */
RexRoshan 0:99fa5a619081 26 void intro_song(Gamepad &pad);
RexRoshan 0:99fa5a619081 27
RexRoshan 6:1fcfd331c047 28 /** Plays mission success song
RexRoshan 6:1fcfd331c047 29 * @param Gamepad pad
RexRoshan 6:1fcfd331c047 30 */
RexRoshan 6:1fcfd331c047 31 void mission_success(Gamepad &pad);
RexRoshan 6:1fcfd331c047 32
RexRoshan 6:1fcfd331c047 33 /** Plays mission fail song
RexRoshan 6:1fcfd331c047 34 * @param Gamepad pad
RexRoshan 6:1fcfd331c047 35 */
RexRoshan 6:1fcfd331c047 36 void mission_fail(Gamepad &pad);
RexRoshan 6:1fcfd331c047 37
RexRoshan 0:99fa5a619081 38 private:
RexRoshan 0:99fa5a619081 39 Thread Thread;
RexRoshan 0:99fa5a619081 40
RexRoshan 0:99fa5a619081 41 };
RexRoshan 0:99fa5a619081 42
RexRoshan 0:99fa5a619081 43 #endif