MenuStorage Class Reference

#include <menu_storage.hpp>

List of all members.

Public Member Functions

 MenuStorage ()

Static Public Member Functions

static OptionsMenuget_options_menu ()
static ProfileMenuget_profile_menu ()
static KeyboardMenuget_key_options_menu ()
static JoystickMenuget_joystick_options_menu ()

Private Member Functions

 MenuStorage (const MenuStorage &)
MenuStorageoperator= (const MenuStorage &)

Static Private Attributes

static OptionsMenuoptions_menu
static ProfileMenuprofile_menu
static KeyboardMenukey_options_menu
static JoystickMenujoystick_options_menu


Detailed Description

Definition at line 26 of file menu_storage.hpp.


Constructor & Destructor Documentation

MenuStorage::MenuStorage (  ) 

MenuStorage::MenuStorage ( const MenuStorage  )  [private]


Member Function Documentation

OptionsMenu * MenuStorage::get_options_menu (  )  [static]

Definition at line 31 of file menu_storage.cpp.

References options_menu.

Referenced by GameMenu::GameMenu(), MainMenu::MainMenu(), and WorldmapMenu::WorldmapMenu().

00032 {
00033   options_menu = new OptionsMenu();
00034   return options_menu;
00035 }

ProfileMenu * MenuStorage::get_profile_menu (  )  [static]

Definition at line 38 of file menu_storage.cpp.

References profile_menu.

Referenced by OptionsMenu::OptionsMenu().

00039 {
00040   profile_menu = new ProfileMenu();
00041   return profile_menu;
00042 }

KeyboardMenu * MenuStorage::get_key_options_menu (  )  [static]

Definition at line 45 of file menu_storage.cpp.

References g_jk_controller, and key_options_menu.

Referenced by OptionsMenu::OptionsMenu(), and JoystickKeyboardController::process_menu_key_event().

00046 {
00047   if (!key_options_menu)
00048   { // FIXME: this in never freed
00049     key_options_menu = new KeyboardMenu(g_jk_controller);
00050   }
00051 
00052   return key_options_menu;
00053 }

JoystickMenu * MenuStorage::get_joystick_options_menu (  )  [static]

Definition at line 56 of file menu_storage.cpp.

References g_jk_controller, and joystick_options_menu.

Referenced by OptionsMenu::OptionsMenu(), JoystickKeyboardController::process_axis_event(), JoystickKeyboardController::process_button_event(), JoystickKeyboardController::process_hat_event(), and JoystickKeyboardController::process_menu_key_event().

00057 {
00058   if (!joystick_options_menu)
00059   { // FIXME: this in never freed
00060     joystick_options_menu = new JoystickMenu(g_jk_controller);
00061   }
00062 
00063   return joystick_options_menu;
00064 }

MenuStorage& MenuStorage::operator= ( const MenuStorage  )  [private]


Member Data Documentation

OptionsMenu * MenuStorage::options_menu [static, private]

Definition at line 37 of file menu_storage.hpp.

Referenced by get_options_menu().

ProfileMenu * MenuStorage::profile_menu [static, private]

Definition at line 38 of file menu_storage.hpp.

Referenced by get_profile_menu().

KeyboardMenu * MenuStorage::key_options_menu [static, private]

Definition at line 39 of file menu_storage.hpp.

Referenced by get_key_options_menu().

JoystickMenu * MenuStorage::joystick_options_menu [static, private]

Definition at line 40 of file menu_storage.hpp.

Referenced by get_joystick_options_menu().


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:32 2014 for SuperTux by  doxygen 1.5.1