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:
- 31:becb8f6bf7b7
- Parent:
- 30:d454d0cb72bc
- Child:
- 32:5403bb974294
diff -r d454d0cb72bc -r becb8f6bf7b7 tutorial/tutorial.h
--- a/tutorial/tutorial.h Tue Apr 16 21:16:33 2019 +0000
+++ b/tutorial/tutorial.h Tue Apr 23 18:18:57 2019 +0000
@@ -1,11 +1,6 @@
#ifndef TUTORIAL_H
#define TUTORIAL_H
-const int right_arrow_pos_x = 66;
-const int left_arrow_pos_x = 5;
-const int arrows_pos_y = 0;
-const int total_pages = 11;
-const float time_delay = 100;
/**Tutorial Class
* @brief A library for describing the Tutorial.
@@ -13,13 +8,18 @@
* @date 15/04/2019
*/
class Tutorial{
- public:
+public:
/** A constructor for the Tutorial's page number*/
Tutorial();
/** @brief Updates and draws a text that explains the game rules and gameplay*/
bool updateAndWriteTutorial();
- private:
+private:
+ static const int right_arrow_pos_x = 70;
+ static const int left_arrow_pos_x = 4;
+ static const int arrows_pos_y = 0;
+ static const int total_pages = 11;
+ static const float time_delay = 100;
int current_page;
void drawArrowsAndExitButton();
void turnPages();
