#include <clientlauncher.h>
◆ ClientLauncher()
ClientLauncher::ClientLauncher |
( |
| ) |
|
|
default |
◆ ~ClientLauncher()
ClientLauncher::~ClientLauncher |
( |
| ) |
|
References Settings::deregisterAllChangedCallbacks(), g_fontengine, g_gamecallback, g_menumgr, g_settings, g_sound_manager_singleton, guienv, guiroot, input, m_rendering_engine, MainMenuManager::menuCount(), and receiver.
◆ config_guienv()
void ClientLauncher::config_guienv |
( |
| ) |
|
|
private |
◆ init_args()
◆ init_engine()
bool ClientLauncher::init_engine |
( |
| ) |
|
|
private |
◆ init_input()
void ClientLauncher::init_input |
( |
| ) |
|
|
private |
References errorstream, g_settings, RenderingEngine::get_raw_device(), Settings::getBool(), infostream, input, InputHandler::joystick, m_rendering_engine, JoystickController::onJoystickConnect(), random_input, and receiver.
Referenced by run().
◆ launch_game()
bool ClientLauncher::launch_game |
( |
std::string & | error_message, |
|
|
bool | reconnect_requested, |
|
|
GameStartData & | start_data, |
|
|
const Settings & | cmd_args ) |
|
private |
References _, GameStartData::address, MainMenuData::address, GameStartData::allow_login_or_register, MainMenuData::allow_login_or_register, MainMenuDataForScript::errormessage, errorstream, Settings::exists(), findWorldSubgame(), g_settings, GameParams::game_spec, Settings::get(), getAvailableWorlds(), getWorldGameId(), infostream, GameStartData::isSinglePlayer(), SubgameSpec::isValid(), itos(), GameStartData::local_server, m_rendering_engine, main_menu(), myrand_range(), GameStartData::name, MainMenuData::name, GameStartData::password, MainMenuData::password, WorldSpec::path, fs::PathExists(), PLAYERNAME_SIZE, MainMenuData::port, MainMenuDataForScript::reconnect_requested, RenderingEngine::run(), MainMenuData::script_data, MainMenuData::selected_world, MainMenuData::serverdescription, MainMenuData::servername, Settings::set(), porting::signal_handler_killstatus(), MainMenuData::simple_singleplayer_mode, skip_main_menu, GameParams::socket_port, stoi, GameParams::world_path, and GameStartData::world_spec.
Referenced by run().
◆ main_menu()
References g_menumgr, g_settings, g_settings_path, RenderingEngine::get_gui_env(), RenderingEngine::get_raw_device(), RenderingEngine::get_scene_manager(), RenderingEngine::get_video_driver(), guiroot, infostream, input, isMenuActive(), InputHandler::joystick, m_rendering_engine, RenderingEngine::run(), porting::signal_handler_killstatus(), sleep_ms, FrameMarker::started(), and Settings::updateConfigFile().
Referenced by launch_game().
◆ run()
References Profiler::clear(), config_guienv(), createShaderSource(), createSoundManagerSingleton(), debug_describe_exc(), errorstream, g_fontengine, g_gamecallback, g_menuclouds, g_menucloudsmgr, g_profiler, g_settings, g_settings_path, g_sound_manager_singleton, g_touchcontrols, g_version_hash, RenderingEngine::get_gui_env(), RenderingEngine::get_raw_device(), RenderingEngine::get_scene_manager(), RenderingEngine::get_video_driver(), Settings::getBool(), Settings::getFloat(), RenderingEngine::getVideoDriver(), guienv, guiroot, infostream, init_args(), init_engine(), init_input(), input, launch_game(), m_rendering_engine, Profiler::print(), Settings::registerChangedCallback(), RenderingEngine::run(), Clouds::setHeight(), RenderingEngine::setResizable(), setting_changed_callback(), RenderingEngine::setupTopLevelWindow(), MainGameCallback::shutdown_requested, porting::signal_handler_killstatus(), skip_main_menu, the_game(), Clouds::update(), Settings::updateConfigFile(), and utf8_to_wide().
Referenced by main().
◆ setting_changed_callback()
void ClientLauncher::setting_changed_callback |
( |
const std::string & | name, |
|
|
void * | data ) |
|
staticprivate |
◆ input
◆ m_rendering_engine
◆ random_input
bool ClientLauncher::random_input = false |
|
private |
◆ receiver
◆ skip_main_menu
bool ClientLauncher::skip_main_menu = false |
|
private |
The documentation for this class was generated from the following files: