Luanti 5.17.0-dev
Loading...
Searching...
No Matches
ClientLauncher Class Reference

#include <clientlauncher.h>

Collaboration diagram for ClientLauncher:

Public Member Functions

 ClientLauncher ()=default
 ~ClientLauncher ()
bool run (const GameParams &game_params, const Settings &cmd_args)

Private Member Functions

void init_args (GameStartData &start_data, const Settings &cmd_args)
void init_engine ()
void init_input ()
void config_guienv ()
bool launch_game (GameErrorData &errordata, GameStartData &start_data, const Settings &cmd_args)
void main_menu (MainMenuData *menudata)

Static Private Member Functions

static void setting_changed_callback (const std::string &name, void *data)

Private Attributes

bool skip_main_menu = false
bool random_input = false
RenderingEnginem_rendering_engine = nullptr
InputHandlerinput = nullptr
MyEventReceiverreceiver = nullptr

Constructor & Destructor Documentation

◆ ClientLauncher()

ClientLauncher::ClientLauncher ( )
default

Referenced by setting_changed_callback().

Here is the caller graph for this function:

◆ ~ClientLauncher()

Member Function Documentation

◆ config_guienv()

void ClientLauncher::config_guienv ( )
private

References g_settings, RenderingEngine::getDisplayDensity(), guienv, loadTexture(), m_rendering_engine, porting::path_share, and rangelim().

Referenced by run(), and setting_changed_callback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_args()

void ClientLauncher::init_args ( GameStartData & start_data,
const Settings & cmd_args )
private

References _, GameClientData::address, Settings::exists(), g_settings, Settings::get(), Settings::getFlag(), getWorldGameId(), GameClientData::GM_HOST_AND_JOIN, GameClientData::GM_JOIN, GameClientData::GM_SINGLEPLAYER, GameClientData::mode, GameClientData::name, WorldSpec::path, random_input, skip_main_menu, GameParams::world_path, and GameStartData::world_spec.

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_engine()

void ClientLauncher::init_engine ( )
private

References m_rendering_engine, and receiver.

Referenced by run().

Here is the caller graph for this function:

◆ init_input()

void ClientLauncher::init_input ( )
private

References input, random_input, and receiver.

Referenced by run().

Here is the caller graph for this function:

◆ launch_game()

bool ClientLauncher::launch_game ( GameErrorData & errordata,
GameStartData & start_data,
const Settings & cmd_args )
private

◆ main_menu()

void ClientLauncher::main_menu ( MainMenuData * menudata)
private

References FrameMarker::end(), g_menumgr, g_settings, g_settings_path, guiroot, infostream, isMenuActive(), m_rendering_engine, porting::signal_handler_killstatus(), sleep_ms, and FrameMarker::started().

Referenced by launch_game().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

bool ClientLauncher::run ( const GameParams & game_params,
const Settings & cmd_args )

References 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, guienv, guiroot, infostream, init_args(), init_engine(), init_input(), input, launch_game(), m_rendering_engine, GameErrorData::message, mt_localtime(), GameErrorData::reconnect_requested, sanity_check, setting_changed_callback(), RenderingEngine::showErrorMessageBox(), porting::signal_handler_killstatus(), skip_main_menu, the_game(), utf8_to_wide(), and BaseException::what().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setting_changed_callback()

void ClientLauncher::setting_changed_callback ( const std::string & name,
void * data )
staticprivate

References ClientLauncher(), and config_guienv().

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ input

InputHandler* ClientLauncher::input = nullptr
private

Referenced by ~ClientLauncher(), init_input(), and run().

◆ m_rendering_engine

RenderingEngine* ClientLauncher::m_rendering_engine = nullptr
private

◆ random_input

bool ClientLauncher::random_input = false
private

Referenced by init_args(), and init_input().

◆ receiver

MyEventReceiver* ClientLauncher::receiver = nullptr
private

◆ skip_main_menu

bool ClientLauncher::skip_main_menu = false
private

Referenced by init_args(), launch_game(), and run().


The documentation for this class was generated from the following files: