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.
tutorial.h
00001 #ifndef TUTORIAL_H 00002 #define TUTORIAL_H 00003 00004 00005 /**Tutorial Class 00006 * @brief A library for describing the Tutorial. 00007 * @author Dmitrijs Griskovs 00008 * @date 15/04/2019 00009 */ 00010 class Tutorial{ 00011 public: 00012 /** A constructor for the Tutorial's page number*/ 00013 Tutorial(); 00014 /** @brief Updates and draws a text that explains the game rules and gameplay*/ 00015 bool updateAndWriteTutorial(); 00016 00017 private: 00018 static const int right_arrow_pos_x = 70; 00019 static const int left_arrow_pos_x = 4; 00020 static const int arrows_pos_y = 0; 00021 static const int total_pages = 11; 00022 static const float time_delay = 100; 00023 int current_page; 00024 void drawArrowsAndExitButton(); 00025 void turnPages(); 00026 void tutorialPage0(); 00027 void tutorialPage1(); 00028 void tutorialPage2(); 00029 void tutorialPage3(); 00030 void tutorialPage4(); 00031 void tutorialPage5(); 00032 void tutorialPage6(); 00033 void tutorialPage7(); 00034 void tutorialPage8(); 00035 void tutorialPage9(); 00036 void tutorialPage10(); 00037 00038 }; 00039 #endif
Generated on Wed Dec 20 2023 20:30:17 by
