ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19zf

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Sound.h Source File

Sound.h

00001 #ifndef SOUND_H
00002 #define SOUND_H
00003 
00004 #include "Gamepad.h"
00005 #include "SoundData.h"
00006 
00007 /** My Sound Class
00008  *@author Zeyu Feng
00009  *@brief set a sound during the game
00010  *@data 17 May 2020
00011 */
00012 class Sound
00013 {
00014 
00015 public:
00016     /** Constructor */
00017     Sound();
00018     
00019     /** Destructor */
00020     ~Sound();
00021     
00022     /** menu sound */
00023     void menu_sound(Gamepad &pad);
00024     
00025     /** begin sound */
00026     void begin_sound(Gamepad &pad);
00027     
00028     /** sound after game over*/
00029     void over_sound(Gamepad &pad);
00030     
00031     /** sound after victory*/
00032     void vict_sound(Gamepad &pad);
00033     
00034     /** sound for count down*/
00035     void count_sound(Gamepad &pad);
00036 
00037 private:
00038 
00039 };
00040 #endif