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
Fork of el17dg by
tutorial/tutorial.h@30:d454d0cb72bc, 2019-04-16 (annotated)
- Committer:
- Noximilien
- Date:
- Tue Apr 16 21:16:33 2019 +0000
- Revision:
- 30:d454d0cb72bc
- Parent:
- 29:579e00b7f118
- Child:
- 31:becb8f6bf7b7
Hace modified some comments. Have added a feature of a force shield. Updated the tutorial, Have finished the settings mode.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Noximilien | 24:0570cb4b92d7 | 1 | #ifndef TUTORIAL_H |
| Noximilien | 24:0570cb4b92d7 | 2 | #define TUTORIAL_H |
| Noximilien | 24:0570cb4b92d7 | 3 | |
| Noximilien | 24:0570cb4b92d7 | 4 | const int right_arrow_pos_x = 66; |
| Noximilien | 24:0570cb4b92d7 | 5 | const int left_arrow_pos_x = 5; |
| Noximilien | 24:0570cb4b92d7 | 6 | const int arrows_pos_y = 0; |
| Noximilien | 30:d454d0cb72bc | 7 | const int total_pages = 11; |
| Noximilien | 29:579e00b7f118 | 8 | const float time_delay = 100; |
| Noximilien | 24:0570cb4b92d7 | 9 | |
| Noximilien | 29:579e00b7f118 | 10 | /**Tutorial Class |
| Noximilien | 30:d454d0cb72bc | 11 | * @brief A library for describing the Tutorial. |
| Noximilien | 30:d454d0cb72bc | 12 | * @author Dmitrijs Griskovs |
| Noximilien | 30:d454d0cb72bc | 13 | * @date 15/04/2019 |
| Noximilien | 30:d454d0cb72bc | 14 | */ |
| Noximilien | 24:0570cb4b92d7 | 15 | class Tutorial{ |
| Noximilien | 24:0570cb4b92d7 | 16 | public: |
| Noximilien | 29:579e00b7f118 | 17 | /** A constructor for the Tutorial's page number*/ |
| Noximilien | 24:0570cb4b92d7 | 18 | Tutorial(); |
| Noximilien | 30:d454d0cb72bc | 19 | /** @brief Updates and draws a text that explains the game rules and gameplay*/ |
| Noximilien | 24:0570cb4b92d7 | 20 | bool updateAndWriteTutorial(); |
| Noximilien | 24:0570cb4b92d7 | 21 | |
| Noximilien | 24:0570cb4b92d7 | 22 | private: |
| Noximilien | 24:0570cb4b92d7 | 23 | int current_page; |
| Noximilien | 29:579e00b7f118 | 24 | void drawArrowsAndExitButton(); |
| Noximilien | 29:579e00b7f118 | 25 | void turnPages(); |
| Noximilien | 29:579e00b7f118 | 26 | void tutorialPage0(); |
| Noximilien | 29:579e00b7f118 | 27 | void tutorialPage1(); |
| Noximilien | 29:579e00b7f118 | 28 | void tutorialPage2(); |
| Noximilien | 29:579e00b7f118 | 29 | void tutorialPage3(); |
| Noximilien | 29:579e00b7f118 | 30 | void tutorialPage4(); |
| Noximilien | 29:579e00b7f118 | 31 | void tutorialPage5(); |
| Noximilien | 29:579e00b7f118 | 32 | void tutorialPage6(); |
| Noximilien | 30:d454d0cb72bc | 33 | void tutorialPage7(); |
| Noximilien | 30:d454d0cb72bc | 34 | void tutorialPage8(); |
| Noximilien | 30:d454d0cb72bc | 35 | void tutorialPage9(); |
| Noximilien | 30:d454d0cb72bc | 36 | void tutorialPage10(); |
| Noximilien | 29:579e00b7f118 | 37 | |
| Noximilien | 24:0570cb4b92d7 | 38 | }; |
| Noximilien | 24:0570cb4b92d7 | 39 | #endif |
