Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
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
Generated on Thu Jul 14 2022 12:45:25 by
