World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл GameMenu.cpp

См. исходные тексты.

Функции

void Game_StartNewGameWhilePlaying (bool force_start)
 
void Game_QuitGameWhilePlaying (bool force_quit)
 
void Game_OpenLoadGameDialog ()
 

Функции

◆ Game_StartNewGameWhilePlaying()

void Game_StartNewGameWhilePlaying ( bool  force_start)

См. определение в файле GameMenu.cpp строка 29

29  {
30  if (dword_6BE138 == 124 || force_start) {
32  // pGUIWindow_CurrentMenu->Release();
36  } else {
38  201)); // "Are you sure? Click again to start a New Game"
39  pAudioPlayer->PlaySound(SOUND_quest, 0, 0, -1, 0, 0);
40  dword_6BE138 = 124;
41  }
42 }

Перекрестные ссылки ViewingParams::bRedrawGameUI, current_screen_type, dword_6BE138, GUIMessageQueue::Flush(), GAME_STATE_NEWGAME_OUT_GAMEMENU, GameUI_StatusBar_OnEvent(), Localization::GetString(), localization, pAudioPlayer, AudioPlayer::PlaySound(), pMessageQueue_50CBD0, SCREEN_GAME, SOUND_quest, uGameState и viewparams.

Используется в Application::Menu::EventLoop().

+ Граф вызовов:
+ Граф вызова функции:

◆ Game_QuitGameWhilePlaying()

void Game_QuitGameWhilePlaying ( bool  force_quit)

См. определение в файле GameMenu.cpp строка 44

44  {
45  if (dword_6BE138 == 132 || force_quit) {
47  // pGUIWindow_CurrentMenu->Release();
52  } else {
54  82)); // "Are you sure? Click again to quit"
55  pAudioPlayer->PlaySound(SOUND_quest, 0, 0, -1, 0, 0);
56  dword_6BE138 = 132;
57  }
58 }

Перекрестные ссылки ViewingParams::bRedrawGameUI, current_screen_type, dword_6BE138, GUIMessageQueue::Flush(), GAME_STATE_GAME_QUITTING_TO_MAIN_MENU, GameUI_StatusBar_OnEvent(), Localization::GetString(), localization, pAudioPlayer, AudioPlayer::PlaySound(), pMessageQueue_50CBD0, SCREEN_GAME, SOUND_quest, SOUND_WoodDoorClosing, uGameState и viewparams.

Используется в Application::Menu::EventLoop().

+ Граф вызовов:
+ Граф вызова функции:

◆ Game_OpenLoadGameDialog()

void Game_OpenLoadGameDialog ( )

См. определение в файле GameMenu.cpp строка 60

Перекрестные ссылки current_screen_type, GUIMessageQueue::Flush(), game_ui_status_bar_event_string_time_left, pGUIWindow_CurrentMenu, pMessageQueue_50CBD0, GUIWindow::Release() и SCREEN_LOADGAME.

Используется в Application::Menu::EventLoop().

+ Граф вызовов:
+ Граф вызова функции:
Localization::GetString
const char * GetString(unsigned int index) const
Definition: Localization.cpp:13
GUIWindow_Load
Definition: UISaveLoad.h:21
uGameState
unsigned int uGameState
Definition: mm7_data.cpp:695
pGUIWindow_CurrentMenu
GUIWindow * pGUIWindow_CurrentMenu
Definition: GUIWindow.cpp:54
GUIMessageQueue::Flush
void Flush()
Definition: GUIWindow.cpp:159
AudioPlayer::PlaySound
void PlaySound(SoundID eSoundID, int pid, unsigned int uNumRepeats, int x, int y, int a7)
Definition: AudioPlayer.cpp:195
localization
Localization * localization
Definition: Localization.cpp:11
GUIWindow::Release
virtual void Release()
Definition: GUIWindow.cpp:292
SOUND_WoodDoorClosing
@ SOUND_WoodDoorClosing
Definition: AudioPlayer.h:13
GAME_STATE_GAME_QUITTING_TO_MAIN_MENU
@ GAME_STATE_GAME_QUITTING_TO_MAIN_MENU
Definition: Engine.h:39
current_screen_type
enum CURRENT_SCREEN current_screen_type
Definition: GUIWindow.cpp:83
CURRENT_SCREEN::SCREEN_LOADGAME
@ SCREEN_LOADGAME
viewparams
struct ViewingParams * viewparams
Definition: mm7_data.cpp:22
SOUND_quest
@ SOUND_quest
Definition: AudioPlayer.h:106
game_ui_status_bar_event_string_time_left
unsigned int game_ui_status_bar_event_string_time_left
Definition: mm7_data.cpp:639
CURRENT_SCREEN::SCREEN_GAME
@ SCREEN_GAME
GameUI_StatusBar_OnEvent
void GameUI_StatusBar_OnEvent(const String &str, unsigned int num_seconds)
Definition: UIStatusBar.cpp:33
GAME_STATE_NEWGAME_OUT_GAMEMENU
@ GAME_STATE_NEWGAME_OUT_GAMEMENU
Definition: Engine.h:36
ViewingParams::bRedrawGameUI
int bRedrawGameUI
Definition: Viewport.h:74
pAudioPlayer
AudioPlayer * pAudioPlayer
Definition: AudioPlayer.cpp:20
dword_6BE138
int dword_6BE138
Definition: mm7_data.cpp:704
pMessageQueue_50CBD0
struct GUIMessageQueue * pMessageQueue_50CBD0
Definition: GUIWindow.cpp:86