contains my game for the embedded systems project 2645
Dependencies: mbed FXOS8700CQQQ
GameTests/tests.cpp@28:39607fb67e88, 2019-04-24 (annotated)
- Committer:
- OmarAlebiary
- Date:
- Wed Apr 24 10:19:07 2019 +0000
- Revision:
- 28:39607fb67e88
- Parent:
- Tests/tests.cpp@26:35714debc45f
- Child:
- 29:e660274d8222
added doxygen comments to RocketRacer.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
OmarAlebiary | 26:35714debc45f | 1 | #include "tests.h" |
OmarAlebiary | 28:39607fb67e88 | 2 | |
OmarAlebiary | 26:35714debc45f | 3 | //testing menus |
OmarAlebiary | 26:35714debc45f | 4 | //////////////////////////////////////////////// |
OmarAlebiary | 28:39607fb67e88 | 5 | |
OmarAlebiary | 28:39607fb67e88 | 6 | tests::tests(){ |
OmarAlebiary | 28:39607fb67e88 | 7 | |
OmarAlebiary | 28:39607fb67e88 | 8 | } |
OmarAlebiary | 26:35714debc45f | 9 | void tests::test_welcomeMenu(Gamepad &pad,N5110 &lcd){ |
OmarAlebiary | 26:35714debc45f | 10 | menu.welcomeMenu(pad,lcd); |
OmarAlebiary | 26:35714debc45f | 11 | } |
OmarAlebiary | 26:35714debc45f | 12 | |
OmarAlebiary | 28:39607fb67e88 | 13 | void tests::test_Play_Welcome_Melody(Gamepad &pad){ |
OmarAlebiary | 28:39607fb67e88 | 14 | Game_Tones.Play_Welcome_Melody(pad); |
OmarAlebiary | 26:35714debc45f | 15 | } |
OmarAlebiary | 28:39607fb67e88 | 16 | |
OmarAlebiary | 28:39607fb67e88 | 17 | void tests::test_End_Game_Melody(Gamepad &pad){ |
OmarAlebiary | 28:39607fb67e88 | 18 | Game_Tones.End_Game_Melody(pad); |
OmarAlebiary | 28:39607fb67e88 | 19 | } |
OmarAlebiary | 26:35714debc45f | 20 | void tests::test_drawMenu(N5110 &lcd,Gamepad &pad){ |
OmarAlebiary | 26:35714debc45f | 21 | menu.drawMenu(lcd,pad); |
OmarAlebiary | 26:35714debc45f | 22 | } |
OmarAlebiary | 26:35714debc45f | 23 | |
OmarAlebiary | 26:35714debc45f | 24 | void tests::test_credits_page(N5110 &lcd,Gamepad &pad){ |
OmarAlebiary | 26:35714debc45f | 25 | menu.credits(lcd,pad); |
OmarAlebiary | 26:35714debc45f | 26 | } |
OmarAlebiary | 26:35714debc45f | 27 | |
OmarAlebiary | 26:35714debc45f | 28 | void tests::test_loading_menu(N5110 &lcd){ |
OmarAlebiary | 26:35714debc45f | 29 | menu.loading_menu(lcd); |
OmarAlebiary | 26:35714debc45f | 30 | } |
OmarAlebiary | 26:35714debc45f | 31 | |
OmarAlebiary | 26:35714debc45f | 32 | void tests::test_InstructionsMenu(Gamepad &pad,N5110 &lcd){ |
OmarAlebiary | 26:35714debc45f | 33 | menu.InstructionsMenu(pad,lcd); |
OmarAlebiary | 26:35714debc45f | 34 | } |
OmarAlebiary | 26:35714debc45f | 35 | |
OmarAlebiary | 26:35714debc45f | 36 | |
OmarAlebiary | 26:35714debc45f | 37 | //testing game |
OmarAlebiary | 26:35714debc45f | 38 | //////////////////////////////////////////////// |
OmarAlebiary | 26:35714debc45f | 39 | void tests::test_Game_Loop(Gamepad &pad,N5110 &lcd){ |
OmarAlebiary | 26:35714debc45f | 40 | while(1){ |
OmarAlebiary | 26:35714debc45f | 41 | Rocket_Racing.Game_Loop(lcd,pad); |
OmarAlebiary | 26:35714debc45f | 42 | } |
OmarAlebiary | 26:35714debc45f | 43 | |
OmarAlebiary | 26:35714debc45f | 44 | } |