Moved menu code frome GameSession and Worldmap into the proper Menu::check_menu(...
[supertux.git] / src / gui / menu.hpp
index 49405b6..3027506 100644 (file)
@@ -74,10 +74,6 @@ public:
   /** Remove all entries from the menu */
   void clear();
 
-  /** Return the index of the menu item that was 'hit' (ie. the user
-      clicked on it) in the last event() call */
-  int check ();
-
   virtual void check_menu() =0;
 
   MenuItem& get_item(int index)
@@ -100,6 +96,10 @@ public:
   void set_toggled(int id, bool toggled);
 
 protected:
+  /** Return the index of the menu item that was 'hit' (ie. the user
+      clicked on it) in the last event() call */
+  int check ();
+
   MenuItem* add_item(std::unique_ptr<MenuItem> menu_item);
   float get_width() const;
   float get_height() const;