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
Diff: tutorial/tutorial.h
- Revision:
- 29:579e00b7f118
- Parent:
- 28:35af3843de8f
- Child:
- 30:d454d0cb72bc
--- a/tutorial/tutorial.h Wed Apr 10 15:42:10 2019 +0000
+++ b/tutorial/tutorial.h Mon Apr 15 12:59:51 2019 +0000
@@ -4,18 +4,33 @@
const int right_arrow_pos_x = 66;
const int left_arrow_pos_x = 5;
const int arrows_pos_y = 0;
+const int total_pages = 7;
+const float time_delay = 100;
+/**Tutorial Class
+ * @brief A library for describing the Tutorial.
+ * @author Dmitrijs Griskovs
+ * @date 15/04/2019
+*/
class Tutorial{
public:
- /** A constructor for the Tutorial's page number*/
+/** A constructor for the Tutorial's page number*/
Tutorial();
- /** Updates and draws a text that explains the game rules and gameplay
+/** @brief Updates and draws a text that explains the game rules and gameplay
*/
bool updateAndWriteTutorial();
private:
int current_page;
+ void drawArrowsAndExitButton();
+ void turnPages();
+ void tutorialPage0();
+ void tutorialPage1();
+ void tutorialPage2();
+ void tutorialPage3();
+ void tutorialPage4();
+ void tutorialPage5();
+ void tutorialPage6();
+
};
-
-
#endif
\ No newline at end of file
