#include <boot.h>
Inheritance diagram for hoa_boot::BootMode:


Public Member Functions | |
| BootMode () | |
| Initializes class members and loads media data. | |
| void | Draw () |
| Wrapper function that calls different draw functions depending on the menu state. | |
| void | Reset () |
| Resets appropriate class members. Called whenever BootMode is made the active game mode. | |
| void | Update () |
| Wrapper function that calls different update functions depending on the menu state. | |
| ~BootMode () | |
| Frees all media data (images and audio). | |
Private Member Functions | |
| void | _AnimateLogo () |
| Animates the game logo when this class is first initialized. | |
| void | _DrawBackgroundItems () |
| Draws background image, logo and sword at their default locations. | |
| void | _EndOpeningAnimation () |
| Stops playback of the opening animation. | |
| void | _OnAudioOptions () |
| 'Audio' confirmed | |
| void | _OnBattleDebug () |
| Battle debug confirmed. | |
| void | _OnBrightnessLeft () |
| Brightness increment. | |
| void | _OnBrightnessRight () |
| Brightness decrement. | |
| void | _OnCredits () |
| 'Credits' confirmed | |
| void | _OnJoySettings () |
| 'Joystick settings' confirmed | |
| void | _OnKeySettings () |
| 'Key settings' confirmed | |
| void | _OnLoadGame () |
| 'Load Game' confirmed | |
| void | _OnMenuDebug () |
| Menu debug confirmed. | |
| void | _OnMusicLeft () |
| Music volume down. | |
| void | _OnMusicRight () |
| Music volume up. | |
| void | _OnNewGame () |
| 'New Game' confirmed | |
| void | _OnOptions () |
| 'Options' confirmed | |
| void | _OnQuit () |
| 'Quit' confirmed | |
| void | _OnResolution () |
| 'Resolution' confirmed | |
| void | _OnRestoreDefaultJoyButtons () |
| Restores default joystick settings. | |
| void | _OnRestoreDefaultKeys () |
| Restores default key settings. | |
| void | _OnShopDebug () |
| Shop debug confirmed. | |
| void | _OnSoundLeft () |
| Sound volume down. | |
| void | _OnSoundRight () |
| Sound volume up. | |
| void | _OnVideoMode () |
| 'Video mode' confirmed | |
| void | _OnVideoOptions () |
| 'Video' confirmed | |
| void | _SaveSettingsFile () |
| Saves all the game settings into a .lua file. | |
| void | _UpdateAudioOptions () |
| Updates the audio options screen. | |
| void | _UpdateJoySettings () |
| Updates the joystick settings screen. | |
| void | _UpdateKeySettings () |
| Updates the key settings screen. | |
| void | _UpdateVideoOptions () |
| Updates the video options screen. | |
| uint8 | _WaitJoyPress () |
| Waits infinitely for a joystick press. | |
| SDLKey | _WaitKeyPress () |
| Waits infinitely for a key press. | |
| void | _OnResolution1024x768 () |
| void | _OnResolution640x480 () |
| void | _OnResolution800x600 () |
| void | _SetResolution (int32 width, int32 height) |
| Resolution switching functions. | |
| void | _RedefineCancelJoy () |
| void | _RedefineConfirmJoy () |
| Redefines a joystick button to be mapped to another command. Waits for press using _WaitJoyPress(). | |
| void | _RedefineLeftSelectJoy () |
| void | _RedefineMenuJoy () |
| void | _RedefinePauseJoy () |
| void | _RedefineRightSelectJoy () |
| void | _RedefineSwapJoy () |
| void | _RedefineCancelKey () |
| void | _RedefineConfirmKey () |
| void | _RedefineDownKey () |
| void | _RedefineLeftKey () |
| void | _RedefineLeftSelectKey () |
| void | _RedefineMenuKey () |
| void | _RedefinePauseKey () |
| void | _RedefineRightKey () |
| void | _RedefineRightSelectKey () |
| void | _RedefineSwapKey () |
| void | _RedefineUpKey () |
| Redefines a key to be mapped to another command. Waits for keypress using _WaitKeyPress(). | |
| void | _SetupAudioOptionsMenu () |
| void | _SetupJoySetttingsMenu () |
| void | _SetupKeySetttingsMenu () |
| void | _SetupMainMenu () |
| Setups the corresponding menu (initialize menu members, set callbacks). | |
| void | _SetupOptionsMenu () |
| void | _SetupResolutionMenu () |
| void | _SetupVideoOptionsMenu () |
Private Attributes | |
| BootMenu | _audio_options_menu |
| 'Audio Options' menu | |
| std::vector< hoa_video::StillImage > | _boot_images |
| Images that will be used at the boot screen. | |
| std::vector< hoa_audio::MusicDescriptor > | _boot_music |
| Music pieces to be used at the boot screen. | |
| std::vector< hoa_audio::SoundDescriptor > | _boot_sounds |
| Sounds that will be used at the boot screen. | |
| CreditsScreen | _credits_screen |
| Credits screen window. | |
| BootMenu * | _current_menu |
| A pointer to the currently visible menu. | |
| bool | _fade_out |
| If true, boot mode is exiting and we have to wait for the screen to finish fading out. | |
| bool | _has_modified_settings |
| Has the user modified game settings? | |
| BootMenu | _joy_settings_menu |
| 'Joystick Settings' menu | |
| BootMenu | _key_settings_menu |
| 'Key Settings' menu | |
| bool | _latest_version |
| Latest version according to version check. | |
| std::string | _latest_version_number |
| If this isn't the latest version, what is? | |
| BootMenu | _main_menu |
| Main menu. | |
| BootMenu | _options_menu |
| 'Options' menu | |
| BootMenu | _resolution_menu |
| 'Resolution switcher' menu | |
| BootMenu | _video_options_menu |
| 'Video Options' menu | |
| WelcomeScreen | _welcome_screen |
| Welcome screen window. | |
Static Private Attributes | |
| static bool | _logo_animating |
| If true, the logo is animating (sword flying and so on...). | |
****************************************************************************
This is the first mode that is pushed onto the game stack when the program starts. Because the user can set various game settings from this game mode, it has a heavy amount of interaction with the GameSettings class.
Definition at line 54 of file boot.h.
| hoa_boot::BootMode::BootMode | ( | ) |
Initializes class members and loads media data.
Definition at line 64 of file boot.cpp.
References _boot_images, _boot_music, _boot_sounds, _current_menu, _latest_version, _latest_version_number, _main_menu, _SetupAudioOptionsMenu(), _SetupJoySetttingsMenu(), _SetupKeySetttingsMenu(), _SetupMainMenu(), _SetupOptionsMenu(), _SetupResolutionMenu(), _SetupVideoOptionsMenu(), hoa_boot::BOOT_DEBUG, hoa_script::ReadScriptDescriptor::CloseFile(), hoa_system::GameSystem::ExitGame(), hoa_script::ScriptDescriptor::GetErrorMessages(), hoa_utils::GetLatestVersion(), hoa_script::ScriptDescriptor::IsErrorDetected(), hoa_video::GameVideo::LoadImage(), hoa_mode_manager::MODE_MANAGER_BOOT_MODE, hoa_mode_manager::GameMode::mode_type, hoa_script::ReadScriptDescriptor::OpenFile(), hoa_script::ReadScriptDescriptor::ReadFloat(), hoa_script::ReadScriptDescriptor::ReadString(), hoa_script::ReadScriptDescriptor::ReadStringVector(), hoa_video::GameVideo::SetCoordSys(), hoa_video::StillImage::SetDimensions(), hoa_video::StillImage::SetFilename(), hoa_system::SystemManager, and hoa_video::VideoManager.
Here is the call graph for this function:

| hoa_boot::BootMode::~BootMode | ( | ) |
Frees all media data (images and audio).
Definition at line 181 of file boot.cpp.
References _boot_images, _boot_music, _boot_sounds, hoa_boot::BOOT_DEBUG, hoa_video::GameVideo::DeleteImage(), and hoa_video::VideoManager.
Here is the call graph for this function:

| void hoa_boot::BootMode::_AnimateLogo | ( | ) | [private] |
Animates the game logo when this class is first initialized.
The logo animation sequences: 1) When game first starts up, screen is totally black
2) Logo gradually fades in from the background to appear on the center of the screen, with the sword placed horizontally as if it is "sheathed" inside the word Allacros
3) After logo fade in is complete, the sword slides out (unsheathes) and moves to the right
4) After sword is completely removed, it moves upwards and makes full 360 degree swings a few times (as if an invisible person was swinging/twirling it) with powerful "woosh" sounds cutting the air.
5) Sword slows down, then comes crashing into the logo (in its default vertical position) with a loud ka-ching
6) A brilliant flash of white light eminates from the sword along with the ka-ching sound, quickly whiting out the entire screen
7) The light fades away, revealing the desert background image (instead of a blank screen) and the logo is now at the top center of the screen.
8) Finally, the copyright text at the very bottom of the screen appears, along with the boot menu (New Game, etc.)
Definition at line 215 of file boot.cpp.
References _boot_images, _DrawBackgroundItems(), _EndOpeningAnimation(), hoa_video::GameVideo::DrawImage(), hoa_video::GameVideo::EnableFog(), hoa_system::GameSystem::GetUpdateTime(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::Rotate(), hoa_video::GameVideo::SetDrawFlags(), hoa_system::SystemManager, hoa_video::VIDEO_BLEND, and hoa_video::VideoManager.
Referenced by Draw().
Here is the call graph for this function:

| void hoa_boot::BootMode::_DrawBackgroundItems | ( | ) | [private] |
Draws background image, logo and sword at their default locations.
Definition at line 337 of file boot.cpp.
References _boot_images, hoa_video::GameVideo::DrawImage(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::VIDEO_BLEND, hoa_video::VIDEO_NO_BLEND, and hoa_video::VideoManager.
Referenced by _AnimateLogo(), and Draw().
Here is the call graph for this function:

| void hoa_boot::BootMode::_EndOpeningAnimation | ( | ) | [private] |
Stops playback of the opening animation.
Definition at line 357 of file boot.cpp.
References _boot_music, _logo_animating, _welcome_screen, hoa_script::ReadScriptDescriptor::CloseFile(), hoa_video::GameVideo::DisableFog(), hoa_script::ReadScriptDescriptor::OpenFile(), hoa_script::ReadScriptDescriptor::ReadInt(), hoa_boot::WelcomeScreen::Show(), hoa_video::VideoManager, and hoa_boot::welcome.
Referenced by _AnimateLogo(), and Update().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnAudioOptions | ( | ) | [private] |
'Audio' confirmed
Definition at line 694 of file boot.cpp.
References _audio_options_menu, _current_menu, and _UpdateAudioOptions().
Referenced by _SetupOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnBattleDebug | ( | ) | [private] |
Battle debug confirmed.
Definition at line 654 of file boot.cpp.
References hoa_global::GameGlobal::AddCharacter(), hoa_battle::BattleMode::AddEnemy(), hoa_global::GLOBAL_CHARACTER_CLAUDIUS, hoa_global::GlobalManager, hoa_mode_manager::ModeManager, hoa_mode_manager::GameModeManager::Pop(), and hoa_mode_manager::GameModeManager::Push().
Referenced by _SetupMainMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnBrightnessLeft | ( | ) | [private] |
Brightness increment.
Definition at line 779 of file boot.cpp.
References _UpdateVideoOptions(), hoa_video::GameVideo::GetGamma(), hoa_video::GameVideo::SetGamma(), and hoa_video::VideoManager.
Referenced by _SetupVideoOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnBrightnessRight | ( | ) | [private] |
Brightness decrement.
Definition at line 785 of file boot.cpp.
References _UpdateVideoOptions(), hoa_video::GameVideo::GetGamma(), hoa_video::GameVideo::SetGamma(), and hoa_video::VideoManager.
Referenced by _SetupVideoOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnCredits | ( | ) | [private] |
'Credits' confirmed
Definition at line 641 of file boot.cpp.
References _credits_screen, and hoa_boot::CreditsScreen::Show().
Referenced by _SetupMainMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnJoySettings | ( | ) | [private] |
'Joystick settings' confirmed
Definition at line 710 of file boot.cpp.
References _current_menu, _joy_settings_menu, and _UpdateJoySettings().
Referenced by _SetupOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnKeySettings | ( | ) | [private] |
'Key settings' confirmed
Definition at line 703 of file boot.cpp.
References _current_menu, _key_settings_menu, and _UpdateKeySettings().
Referenced by _SetupOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnLoadGame | ( | ) | [private] |
'Load Game' confirmed
Definition at line 615 of file boot.cpp.
References _boot_music, _fade_out, _SaveSettingsFile(), hoa_boot::BOOT_DEBUG, hoa_utils::DoesFileExist(), hoa_video::GameVideo::FadeScreen(), hoa_global::GlobalManager, hoa_global::GameGlobal::LoadGame(), and hoa_video::VideoManager.
Referenced by _SetupMainMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnMenuDebug | ( | ) | [private] |
Menu debug confirmed.
Definition at line 664 of file boot.cpp.
References hoa_global::GameGlobal::AddCharacter(), hoa_global::GLOBAL_CHARACTER_CLAUDIUS, hoa_global::GlobalManager, hoa_utils::MakeUnicodeString(), hoa_mode_manager::ModeManager, hoa_mode_manager::GameModeManager::Pop(), and hoa_mode_manager::GameModeManager::Push().
Referenced by _SetupMainMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnMusicLeft | ( | ) | [private] |
Music volume down.
Definition at line 743 of file boot.cpp.
References _UpdateAudioOptions(), hoa_audio::AudioManager, hoa_audio::GameAudio::GetMusicVolume(), and hoa_audio::GameAudio::SetMusicVolume().
Referenced by _SetupAudioOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnMusicRight | ( | ) | [private] |
Music volume up.
Definition at line 750 of file boot.cpp.
References _UpdateAudioOptions(), hoa_audio::AudioManager, hoa_audio::GameAudio::GetMusicVolume(), and hoa_audio::GameAudio::SetMusicVolume().
Referenced by _SetupAudioOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnNewGame | ( | ) | [private] |
'New Game' confirmed
Definition at line 597 of file boot.cpp.
References _boot_music, _fade_out, _SaveSettingsFile(), hoa_global::GameGlobal::AddCharacter(), hoa_global::GameGlobal::AddToInventory(), hoa_boot::BOOT_DEBUG, hoa_video::GameVideo::FadeScreen(), hoa_global::GLOBAL_CHARACTER_CLAUDIUS, hoa_global::GLOBAL_CHARACTER_LAILA, hoa_global::GlobalManager, hoa_global::GameGlobal::SetDrunes(), and hoa_video::VideoManager.
Referenced by _SetupMainMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnOptions | ( | ) | [private] |
'Options' confirmed
Definition at line 634 of file boot.cpp.
References _current_menu, _has_modified_settings, and _options_menu.
Referenced by _SetupMainMenu().
| void hoa_boot::BootMode::_OnQuit | ( | ) | [private] |
'Quit' confirmed
Definition at line 647 of file boot.cpp.
References _SaveSettingsFile(), hoa_system::GameSystem::ExitGame(), and hoa_system::SystemManager.
Referenced by _SetupMainMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnResolution | ( | ) | [private] |
'Resolution' confirmed
Definition at line 680 of file boot.cpp.
References _current_menu, and _resolution_menu.
Referenced by _SetupVideoOptionsMenu().
| void hoa_boot::BootMode::_OnResolution1024x768 | ( | ) | [private] |
Definition at line 773 of file boot.cpp.
References _SetResolution(), hoa_video::GameVideo::GetHeight(), hoa_video::GameVideo::GetWidth(), and hoa_video::VideoManager.
Referenced by _SetupResolutionMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnResolution640x480 | ( | ) | [private] |
Definition at line 763 of file boot.cpp.
References _SetResolution(), hoa_video::GameVideo::GetHeight(), hoa_video::GameVideo::GetWidth(), and hoa_video::VideoManager.
Referenced by _SetupResolutionMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnResolution800x600 | ( | ) | [private] |
Definition at line 768 of file boot.cpp.
References _SetResolution(), hoa_video::GameVideo::GetHeight(), hoa_video::GameVideo::GetWidth(), and hoa_video::VideoManager.
Referenced by _SetupResolutionMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnRestoreDefaultJoyButtons | ( | ) | [private] |
Restores default joystick settings.
Definition at line 799 of file boot.cpp.
References _UpdateJoySettings(), hoa_input::InputManager, and hoa_input::GameInput::RestoreDefaultJoyButtons().
Referenced by _SetupJoySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnRestoreDefaultKeys | ( | ) | [private] |
Restores default key settings.
Definition at line 792 of file boot.cpp.
References _UpdateKeySettings(), hoa_input::InputManager, and hoa_input::GameInput::RestoreDefaultKeys().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnShopDebug | ( | ) | [private] |
Shop debug confirmed.
Definition at line 672 of file boot.cpp.
References hoa_global::GameGlobal::AddDrunes(), hoa_global::GlobalManager, hoa_mode_manager::ModeManager, and hoa_mode_manager::GameModeManager::Push().
Referenced by _SetupMainMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnSoundLeft | ( | ) | [private] |
Sound volume down.
Definition at line 727 of file boot.cpp.
References _boot_sounds, _UpdateAudioOptions(), hoa_audio::AudioManager, hoa_audio::GameAudio::GetSoundVolume(), and hoa_audio::GameAudio::SetSoundVolume().
Referenced by _SetupAudioOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnSoundRight | ( | ) | [private] |
Sound volume up.
Definition at line 735 of file boot.cpp.
References _boot_sounds, _UpdateAudioOptions(), hoa_audio::AudioManager, hoa_audio::GameAudio::GetSoundVolume(), and hoa_audio::GameAudio::SetSoundVolume().
Referenced by _SetupAudioOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnVideoMode | ( | ) | [private] |
'Video mode' confirmed
Definition at line 717 of file boot.cpp.
References _UpdateVideoOptions(), hoa_video::GameVideo::ApplySettings(), hoa_video::GameVideo::ToggleFullscreen(), and hoa_video::VideoManager.
Referenced by _SetupVideoOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_OnVideoOptions | ( | ) | [private] |
'Video' confirmed
Definition at line 686 of file boot.cpp.
References _current_menu, _UpdateVideoOptions(), and _video_options_menu.
Referenced by _SetupOptionsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineCancelJoy | ( | ) | [private] |
Definition at line 467 of file boot.cpp.
References _UpdateJoySettings(), _WaitJoyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetCancelJoy().
Referenced by _SetupJoySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineCancelKey | ( | ) | [private] |
Definition at line 431 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetCancelKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineConfirmJoy | ( | ) | [private] |
Redefines a joystick button to be mapped to another command. Waits for press using _WaitJoyPress().
Definition at line 463 of file boot.cpp.
References _UpdateJoySettings(), _WaitJoyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetConfirmJoy().
Referenced by _SetupJoySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineConfirmKey | ( | ) | [private] |
Definition at line 426 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetConfirmKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineDownKey | ( | ) | [private] |
Definition at line 411 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetDownKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineLeftKey | ( | ) | [private] |
Definition at line 416 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetLeftKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineLeftSelectJoy | ( | ) | [private] |
Definition at line 479 of file boot.cpp.
References _UpdateJoySettings(), _WaitJoyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetLeftSelectJoy().
Referenced by _SetupJoySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineLeftSelectKey | ( | ) | [private] |
Definition at line 446 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetLeftSelectKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineMenuJoy | ( | ) | [private] |
Definition at line 471 of file boot.cpp.
References _UpdateJoySettings(), _WaitJoyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetMenuJoy().
Referenced by _SetupJoySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineMenuKey | ( | ) | [private] |
Definition at line 436 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetMenuKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefinePauseJoy | ( | ) | [private] |
Definition at line 487 of file boot.cpp.
References _UpdateJoySettings(), _WaitJoyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetPauseJoy().
Referenced by _SetupJoySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefinePauseKey | ( | ) | [private] |
Definition at line 456 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetPauseKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineRightKey | ( | ) | [private] |
Definition at line 421 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetRightKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineRightSelectJoy | ( | ) | [private] |
Definition at line 483 of file boot.cpp.
References _UpdateJoySettings(), _WaitJoyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetRightSelectJoy().
Referenced by _SetupJoySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineRightSelectKey | ( | ) | [private] |
Definition at line 451 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetRightSelectKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineSwapJoy | ( | ) | [private] |
Definition at line 475 of file boot.cpp.
References _UpdateJoySettings(), _WaitJoyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetSwapJoy().
Referenced by _SetupJoySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineSwapKey | ( | ) | [private] |
Definition at line 441 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetSwapKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_RedefineUpKey | ( | ) | [private] |
Redefines a key to be mapped to another command. Waits for keypress using _WaitKeyPress().
Definition at line 406 of file boot.cpp.
References _UpdateKeySettings(), _WaitKeyPress(), hoa_input::InputManager, and hoa_input::GameInput::SetUpKey().
Referenced by _SetupKeySetttingsMenu().
Here is the call graph for this function:

| void hoa_boot::BootMode::_SaveSettingsFile | ( | ) | [private] |
Saves all the game settings into a .lua file.
Definition at line 865 of file boot.cpp.
References hoa_audio::AudioManager, hoa_script::ModifyScriptDescriptor::CommitChanges(), hoa_input::GameInput::GetCancelJoy(), hoa_input::GameInput::GetCancelKey(), hoa_input::GameInput::GetConfirmJoy(), hoa_input::GameInput::GetConfirmKey(), hoa_input::GameInput::GetDownKey(), hoa_video::GameVideo::GetGamma(), hoa_video::GameVideo::GetHeight(), hoa_input::GameInput::GetLeftKey(), hoa_input::GameInput::GetLeftSelectJoy(), hoa_input::GameInput::GetLeftSelectKey(), hoa_input::GameInput::GetMenuJoy(), hoa_input::GameInput::GetMenuKey(), hoa_audio::GameAudio::GetMusicVolume(), hoa_input::GameInput::GetPauseJoy(), hoa_input::GameInput::GetPauseKey(), hoa_input::GameInput::GetRightKey(), hoa_input::GameInput::GetRightSelectJoy(), hoa_input::GameInput::GetRightSelectKey(), hoa_audio::GameAudio::GetSoundVolume(), hoa_input::GameInput::GetSwapJoy(), hoa_input::GameInput::GetSwapKey(), hoa_input::GameInput::GetUpKey(), hoa_video::GameVideo::GetWidth(), hoa_input::InputManager, hoa_video::GameVideo::IsFullscreen(), hoa_script::ModifyScriptDescriptor::ModifyFloat(), hoa_script::ModifyScriptDescriptor::ModifyInt(), hoa_script::ModifyScriptDescriptor::ModifyString(), hoa_script::ModifyScriptDescriptor::OpenFile(), and hoa_video::VideoManager.
Referenced by _OnLoadGame(), _OnNewGame(), and _OnQuit().
Here is the call graph for this function:

Resolution switching functions.
Definition at line 756 of file boot.cpp.
References _current_menu, _UpdateVideoOptions(), _video_options_menu, hoa_video::GameVideo::ApplySettings(), hoa_video::GameVideo::SetResolution(), and hoa_video::VideoManager.
Referenced by _OnResolution1024x768(), _OnResolution640x480(), and _OnResolution800x600().
Here is the call graph for this function:

| void hoa_boot::BootMode::_SetupAudioOptionsMenu | ( | ) | [private] |
Definition at line 540 of file boot.cpp.
References _audio_options_menu, _OnMusicLeft(), _OnMusicRight(), _OnSoundLeft(), _OnSoundRight(), _options_menu, hoa_boot::BootMenu::AddOption(), hoa_utils::MakeUnicodeString(), hoa_boot::BootMenu::SetParent(), and hoa_boot::BootMenu::SetWindowed().
Referenced by BootMode().
Here is the call graph for this function:

| void hoa_boot::BootMode::_SetupJoySetttingsMenu | ( | ) | [private] |
Definition at line 570 of file boot.cpp.
References _joy_settings_menu, _OnRestoreDefaultJoyButtons(), _options_menu, _RedefineCancelJoy(), _RedefineConfirmJoy(), _RedefineLeftSelectJoy(), _RedefineMenuJoy(), _RedefinePauseJoy(), _RedefineRightSelectJoy(), _RedefineSwapJoy(), hoa_boot::BootMenu::AddOption(), hoa_utils::MakeUnicodeString(), hoa_boot::BootMenu::SetParent(), hoa_boot::BootMenu::SetTextDensity(), and hoa_boot::BootMenu::SetWindowed().
Referenced by BootMode().
Here is the call graph for this function:

| void hoa_boot::BootMode::_SetupKeySetttingsMenu | ( | ) | [private] |
Definition at line 550 of file boot.cpp.
References _key_settings_menu, _OnRestoreDefaultKeys(), _options_menu, _RedefineCancelKey(), _RedefineConfirmKey(), _RedefineDownKey(), _RedefineLeftKey(), _RedefineLeftSelectKey(), _RedefineMenuKey(), _RedefinePauseKey(), _RedefineRightKey(), _RedefineRightSelectKey(), _RedefineSwapKey(), _RedefineUpKey(), hoa_boot::BootMenu::AddOption(), hoa_utils::MakeUnicodeString(), hoa_boot::BootMenu::SetParent(), hoa_boot::BootMenu::SetTextDensity(), and hoa_boot::BootMenu::SetWindowed().
Referenced by BootMode().
Here is the call graph for this function:

| void hoa_boot::BootMode::_SetupMainMenu | ( | ) | [private] |
Setups the corresponding menu (initialize menu members, set callbacks).
Definition at line 494 of file boot.cpp.
References _main_menu, _OnBattleDebug(), _OnCredits(), _OnLoadGame(), _OnMenuDebug(), _OnNewGame(), _OnOptions(), _OnQuit(), _OnShopDebug(), hoa_boot::BootMenu::AddOption(), and hoa_utils::MakeUnicodeString().
Referenced by BootMode().
Here is the call graph for this function:

| void hoa_boot::BootMode::_SetupOptionsMenu | ( | ) | [private] |
Definition at line 510 of file boot.cpp.
References _main_menu, _OnAudioOptions(), _OnJoySettings(), _OnKeySettings(), _OnVideoOptions(), _options_menu, hoa_boot::BootMenu::AddOption(), hoa_boot::BootMenu::EnableOption(), hoa_utils::MakeUnicodeString(), hoa_boot::BootMenu::SetParent(), and hoa_boot::BootMenu::SetWindowed().
Referenced by BootMode().
Here is the call graph for this function:

| void hoa_boot::BootMode::_SetupResolutionMenu | ( | ) | [private] |
Definition at line 586 of file boot.cpp.
References _OnResolution1024x768(), _OnResolution640x480(), _OnResolution800x600(), _resolution_menu, _video_options_menu, hoa_boot::BootMenu::AddOption(), hoa_utils::MakeUnicodeString(), hoa_boot::BootMenu::SetParent(), and hoa_boot::BootMenu::SetWindowed().
Referenced by BootMode().
Here is the call graph for this function:

| void hoa_boot::BootMode::_SetupVideoOptionsMenu | ( | ) | [private] |
Definition at line 526 of file boot.cpp.
References _OnBrightnessLeft(), _OnBrightnessRight(), _OnResolution(), _OnVideoMode(), _options_menu, _video_options_menu, hoa_boot::BootMenu::AddOption(), hoa_boot::BootMenu::EnableOption(), hoa_utils::MakeUnicodeString(), hoa_boot::BootMenu::SetParent(), and hoa_boot::BootMenu::SetWindowed().
Referenced by BootMode().
Here is the call graph for this function:

| void hoa_boot::BootMode::_UpdateAudioOptions | ( | ) | [private] |
Updates the audio options screen.
Definition at line 824 of file boot.cpp.
References _audio_options_menu, hoa_audio::AudioManager, hoa_audio::GameAudio::GetMusicVolume(), hoa_audio::GameAudio::GetSoundVolume(), hoa_utils::MakeUnicodeString(), and hoa_boot::BootMenu::SetOptionText().
Referenced by _OnAudioOptions(), _OnMusicLeft(), _OnMusicRight(), _OnSoundLeft(), and _OnSoundRight().
Here is the call graph for this function:

| void hoa_boot::BootMode::_UpdateJoySettings | ( | ) | [private] |
Updates the joystick settings screen.
Definition at line 853 of file boot.cpp.
References _joy_settings_menu, hoa_input::GameInput::GetCancelJoy(), hoa_input::GameInput::GetConfirmJoy(), hoa_input::GameInput::GetLeftSelectJoy(), hoa_input::GameInput::GetMenuJoy(), hoa_input::GameInput::GetPauseJoy(), hoa_input::GameInput::GetRightSelectJoy(), hoa_input::GameInput::GetSwapJoy(), hoa_input::InputManager, hoa_utils::MakeUnicodeString(), hoa_utils::NumberToString(), and hoa_boot::BootMenu::SetOptionText().
Referenced by _OnJoySettings(), _OnRestoreDefaultJoyButtons(), _RedefineCancelJoy(), _RedefineConfirmJoy(), _RedefineLeftSelectJoy(), _RedefineMenuJoy(), _RedefinePauseJoy(), _RedefineRightSelectJoy(), and _RedefineSwapJoy().
Here is the call graph for this function:

| void hoa_boot::BootMode::_UpdateKeySettings | ( | ) | [private] |
Updates the key settings screen.
Definition at line 837 of file boot.cpp.
References _key_settings_menu, hoa_input::GameInput::GetCancelKeyName(), hoa_input::GameInput::GetConfirmKeyName(), hoa_input::GameInput::GetDownKeyName(), hoa_input::GameInput::GetLeftKeyName(), hoa_input::GameInput::GetLeftSelectKeyName(), hoa_input::GameInput::GetMenuKeyName(), hoa_input::GameInput::GetPauseKeyName(), hoa_input::GameInput::GetRightKeyName(), hoa_input::GameInput::GetRightSelectKeyName(), hoa_input::GameInput::GetSwapKeyName(), hoa_input::GameInput::GetUpKeyName(), hoa_input::InputManager, hoa_utils::MakeUnicodeString(), and hoa_boot::BootMenu::SetOptionText().
Referenced by _OnKeySettings(), _OnRestoreDefaultKeys(), _RedefineCancelKey(), _RedefineConfirmKey(), _RedefineDownKey(), _RedefineLeftKey(), _RedefineLeftSelectKey(), _RedefineMenuKey(), _RedefinePauseKey(), _RedefineRightKey(), _RedefineRightSelectKey(), _RedefineSwapKey(), and _RedefineUpKey().
Here is the call graph for this function:

| void hoa_boot::BootMode::_UpdateVideoOptions | ( | ) | [private] |
Updates the video options screen.
Definition at line 806 of file boot.cpp.
References _video_options_menu, hoa_video::GameVideo::GetGamma(), hoa_video::GameVideo::GetHeight(), hoa_video::GameVideo::GetWidth(), hoa_video::GameVideo::IsFullscreen(), hoa_utils::MakeUnicodeString(), hoa_utils::NumberToString(), hoa_boot::BootMenu::SetOptionText(), and hoa_video::VideoManager.
Referenced by _OnBrightnessLeft(), _OnBrightnessRight(), _OnVideoMode(), _OnVideoOptions(), and _SetResolution().
Here is the call graph for this function:

| uint8 hoa_boot::BootMode::_WaitJoyPress | ( | ) | [private] |
Waits infinitely for a joystick press.
Definition at line 394 of file boot.cpp.
Referenced by _RedefineCancelJoy(), _RedefineConfirmJoy(), _RedefineLeftSelectJoy(), _RedefineMenuJoy(), _RedefinePauseJoy(), _RedefineRightSelectJoy(), and _RedefineSwapJoy().
| SDLKey hoa_boot::BootMode::_WaitKeyPress | ( | ) | [private] |
Waits infinitely for a key press.
Definition at line 382 of file boot.cpp.
Referenced by _RedefineCancelKey(), _RedefineConfirmKey(), _RedefineDownKey(), _RedefineLeftKey(), _RedefineLeftSelectKey(), _RedefineMenuKey(), _RedefinePauseKey(), _RedefineRightKey(), _RedefineRightSelectKey(), _RedefineSwapKey(), and _RedefineUpKey().
| void hoa_boot::BootMode::Draw | ( | ) | [virtual] |
Wrapper function that calls different draw functions depending on the menu state.
Implements hoa_mode_manager::GameMode.
Definition at line 1047 of file boot.cpp.
References _AnimateLogo(), _credits_screen, _current_menu, _DrawBackgroundItems(), _latest_version, _latest_version_number, _logo_animating, _welcome_screen, hoa_boot::BootMenu::Draw(), hoa_boot::WelcomeScreen::Draw(), hoa_boot::CreditsScreen::Draw(), hoa_video::GameVideo::DrawText(), hoa_boot::WelcomeScreen::IsVisible(), hoa_boot::CreditsScreen::IsVisible(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::MoveRelative(), hoa_video::GameVideo::SetFont(), hoa_video::GameVideo::SetTextColor(), and hoa_video::VideoManager.
Here is the call graph for this function:

| void hoa_boot::BootMode::Reset | ( | ) | [virtual] |
Resets appropriate class members. Called whenever BootMode is made the active game mode.
Implements hoa_mode_manager::GameMode.
Definition at line 196 of file boot.cpp.
References _boot_music, _logo_animating, hoa_global::GameGlobal::ClearAllData(), hoa_video::GameVideo::DisableFog(), hoa_global::GlobalManager, hoa_video::GameVideo::SetCoordSys(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::GameVideo::SetTextColor(), hoa_video::VIDEO_X_CENTER, hoa_video::VIDEO_Y_CENTER, and hoa_video::VideoManager.
Here is the call graph for this function:

| void hoa_boot::BootMode::Update | ( | ) | [virtual] |
Wrapper function that calls different update functions depending on the menu state.
Implements hoa_mode_manager::GameMode.
Definition at line 915 of file boot.cpp.
References _boot_sounds, _credits_screen, _current_menu, _EndOpeningAnimation(), _fade_out, _logo_animating, _welcome_screen, hoa_input::GameInput::AnyKeyPress(), hoa_input::GameInput::CancelPress(), hoa_boot::BootMenu::CancelPressed(), hoa_input::GameInput::ConfirmPress(), hoa_boot::BootMenu::ConfirmPressed(), hoa_input::GameInput::DownPress(), hoa_boot::BootMenu::DownPressed(), hoa_video::GameVideo::FadeScreen(), hoa_boot::BootMenu::GetEvent(), hoa_boot::BootMenu::GetParent(), hoa_system::GameSystem::GetUpdateTime(), hoa_boot::CreditsScreen::Hide(), hoa_boot::WelcomeScreen::Hide(), hoa_input::InputManager, hoa_video::GameVideo::IsFading(), hoa_boot::BootMenu::IsSelectionEnabled(), hoa_boot::CreditsScreen::IsVisible(), hoa_boot::WelcomeScreen::IsVisible(), hoa_boot::BootMenu::IsWindowed(), hoa_input::GameInput::LeftPress(), hoa_boot::BootMenu::LeftPressed(), hoa_mode_manager::ModeManager, hoa_mode_manager::GameModeManager::Pop(), hoa_mode_manager::GameModeManager::Push(), hoa_input::GameInput::RightPress(), hoa_boot::BootMenu::RightPressed(), hoa_boot::BootMenu::ShowWindow(), hoa_system::SystemManager, hoa_boot::CreditsScreen::UpdateWindow(), hoa_boot::BootMenu::UpdateWindow(), hoa_input::GameInput::UpPress(), hoa_boot::BootMenu::UpPressed(), hoa_video::VideoManager, and hoa_boot::welcome.
Here is the call graph for this function:

'Audio Options' menu
Definition at line 88 of file boot.h.
Referenced by _OnAudioOptions(), _SetupAudioOptionsMenu(), and _UpdateAudioOptions().
std::vector<hoa_video::StillImage> hoa_boot::BootMode::_boot_images [private] |
Images that will be used at the boot screen.
Definition at line 67 of file boot.h.
Referenced by _AnimateLogo(), _DrawBackgroundItems(), BootMode(), and ~BootMode().
std::vector<hoa_audio::MusicDescriptor> hoa_boot::BootMode::_boot_music [private] |
Music pieces to be used at the boot screen.
Definition at line 63 of file boot.h.
Referenced by _EndOpeningAnimation(), _OnLoadGame(), _OnNewGame(), BootMode(), Reset(), and ~BootMode().
std::vector<hoa_audio::SoundDescriptor> hoa_boot::BootMode::_boot_sounds [private] |
Sounds that will be used at the boot screen.
Definition at line 65 of file boot.h.
Referenced by _OnSoundLeft(), _OnSoundRight(), BootMode(), Update(), and ~BootMode().
Credits screen window.
Definition at line 70 of file boot.h.
Referenced by _OnCredits(), Draw(), and Update().
BootMenu* hoa_boot::BootMode::_current_menu [private] |
A pointer to the currently visible menu.
Definition at line 76 of file boot.h.
Referenced by _OnAudioOptions(), _OnJoySettings(), _OnKeySettings(), _OnOptions(), _OnResolution(), _OnVideoOptions(), _SetResolution(), BootMode(), Draw(), and Update().
bool hoa_boot::BootMode::_fade_out [private] |
If true, boot mode is exiting and we have to wait for the screen to finish fading out.
Definition at line 57 of file boot.h.
Referenced by _OnLoadGame(), _OnNewGame(), and Update().
bool hoa_boot::BootMode::_has_modified_settings [private] |
Has the user modified game settings?
Definition at line 103 of file boot.h.
Referenced by _OnOptions().
'Joystick Settings' menu
Definition at line 94 of file boot.h.
Referenced by _OnJoySettings(), _SetupJoySetttingsMenu(), and _UpdateJoySettings().
'Key Settings' menu
Definition at line 91 of file boot.h.
Referenced by _OnKeySettings(), _SetupKeySetttingsMenu(), and _UpdateKeySettings().
bool hoa_boot::BootMode::_latest_version [private] |
Latest version according to version check.
Definition at line 100 of file boot.h.
Referenced by BootMode(), and Draw().
std::string hoa_boot::BootMode::_latest_version_number [private] |
If this isn't the latest version, what is?
Definition at line 106 of file boot.h.
Referenced by BootMode(), and Draw().
bool hoa_boot::BootMode::_logo_animating [static, private] |
BootMenu hoa_boot::BootMode::_main_menu [private] |
Main menu.
Definition at line 79 of file boot.h.
Referenced by _SetupMainMenu(), _SetupOptionsMenu(), and BootMode().
BootMenu hoa_boot::BootMode::_options_menu [private] |
'Options' menu
Definition at line 82 of file boot.h.
Referenced by _OnOptions(), _SetupAudioOptionsMenu(), _SetupJoySetttingsMenu(), _SetupKeySetttingsMenu(), _SetupOptionsMenu(), and _SetupVideoOptionsMenu().
BootMenu hoa_boot::BootMode::_resolution_menu [private] |
'Resolution switcher' menu
Definition at line 97 of file boot.h.
Referenced by _OnResolution(), and _SetupResolutionMenu().
'Video Options' menu
Definition at line 85 of file boot.h.
Referenced by _OnVideoOptions(), _SetResolution(), _SetupResolutionMenu(), _SetupVideoOptionsMenu(), and _UpdateVideoOptions().
Welcome screen window.
Definition at line 73 of file boot.h.
Referenced by _EndOpeningAnimation(), Draw(), and Update().
1.5.1