#include <menu_storage.hpp>
Public Member Functions | |
MenuStorage () | |
Static Public Member Functions | |
static OptionsMenu * | get_options_menu () |
static ProfileMenu * | get_profile_menu () |
static KeyboardMenu * | get_key_options_menu () |
static JoystickMenu * | get_joystick_options_menu () |
Private Member Functions | |
MenuStorage (const MenuStorage &) | |
MenuStorage & | operator= (const MenuStorage &) |
Static Private Attributes | |
static OptionsMenu * | options_menu |
static ProfileMenu * | profile_menu |
static KeyboardMenu * | key_options_menu |
static JoystickMenu * | joystick_options_menu |
Definition at line 26 of file menu_storage.hpp.
MenuStorage::MenuStorage | ( | ) |
MenuStorage::MenuStorage | ( | const MenuStorage & | ) | [private] |
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] |
OptionsMenu * MenuStorage::options_menu [static, private] |
ProfileMenu * MenuStorage::profile_menu [static, private] |
KeyboardMenu * MenuStorage::key_options_menu [static, private] |
JoystickMenu * MenuStorage::joystick_options_menu [static, private] |