ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
31:becb8f6bf7b7
Parent:
30:d454d0cb72bc
Child:
32:5403bb974294
--- a/menu/menu.h	Tue Apr 16 21:16:33 2019 +0000
+++ b/menu/menu.h	Tue Apr 23 18:18:57 2019 +0000
@@ -1,37 +1,41 @@
 #ifndef MENU_H
 #define MENU_H
 
-/** Creates //////////////////////////////////////////////
-  *
-  */
-enum ScreenOption {             //the available options in the menu.
+//#include "stars.h"
+
+/** Available options in the menu. */
+enum ScreenOption {             
     ScreenOption_Menu,
     ScreenOption_Game,
     ScreenOption_Tutorial,
     ScreenOption_Settings
 };
 
-/**Menu Class
- * @brief A library for describing the menu.
+/**
+ * Menu Class
+ * @brief Describes the menu.
  * @author Dmitrijs Griskovs
  * @date 15/04/2019
  */
 class Menu {
-    public:
-/** A constructor */
-        Menu();    
-/** brief@ Updates and Draws menu.
- * details@ Updates and draws menu input. Also, allows to select an option availabe   
- * from the enum. It return "true" statment if the user picked a menu option.
- */                            
-        bool updateAndDraw();  
+public:
+    /** A constructor */
+    Menu();    
 
-        ScreenOption getCurrentScreenSelection(); 
+    /** 
+     * @brief Updates and Draws menu.
+     * @details Updates and draws menu options. Also, allows to select an option availabe   
+     * from the enum. It return "true" statment if the user picked a menu option.
+     */                            
+    bool updateAndDraw();  
+
+    /** Returns currently selected meny option */
+    ScreenOption getCurrentScreenSelection(); 
         
-    private:
-        void pointerPosition(int menu_number);
-        void drawPointer();
-        int current_option;      // NOTE to self: can declare variables in classes.
+private:
+    void pointerPosition(int menu_number);
+    void drawPointer();
+    int current_option;
 };