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 FXOS8700CQQQ
GameTones Class Reference
#include <GameTones.h>
Public Member Functions | |
| GameTones () | |
| Default Constuctor. | |
| ~GameTones () | |
| Default destuctor. | |
| void | End_Game_Melody (Gamepad &pad) |
| method to play the game over melody | |
| void | Play_Welcome_Melody (Gamepad &pad) |
| method to play the welcome melody | |
Detailed Description
GameTones class.
C++ class containing the tones for the gameplay
- Version:
- 1.0
- Date:
- April 2019
#include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "RocketRacer.h" // objects Gamepad pad; RocketRacer rc; Menus menus; GameTones tones; int main(){ //initializes the gamepad and the lcd setup(); //plays costume made tones for the end of game display tones.End_Game_Melody(pad); //plays costume made tones for the welcome screen tones.Play_Welcome_Melody(pad); }
Definition at line 48 of file GameTones.h.
Constructor & Destructor Documentation
| GameTones | ( | ) |
Default Constuctor.
Creates the object of class GameTones
Definition at line 4 of file GameTones.cpp.
| ~GameTones | ( | ) |
Default destuctor.
destroys the object of class GameTones
Definition at line 7 of file GameTones.cpp.
Member Function Documentation
| void End_Game_Melody | ( | Gamepad & | pad ) |
method to play the game over melody
- Parameters:
-
pad calls the Gamepad object to be passed to the methods called inside this method
Definition at line 10 of file GameTones.cpp.
| void Play_Welcome_Melody | ( | Gamepad & | pad ) |
method to play the welcome melody
- Parameters:
-
pad calls the Gamepad object to be passed to the methods called inside this method
Definition at line 24 of file GameTones.cpp.
Generated on Mon Jul 18 2022 07:45:10 by
1.7.2