Minetest  5.4.0
ClientLauncher Class Reference

#include <clientlauncher.h>

+ Collaboration diagram for ClientLauncher:

Public Member Functions

 ClientLauncher ()=default
 
 ~ClientLauncher ()
 
bool run (GameStartData &start_data, const Settings &cmd_args)
 

Private Member Functions

void init_args (GameStartData &start_data, const Settings &cmd_args)
 
bool init_engine ()
 
void init_input ()
 
bool launch_game (std::string &error_message, bool reconnect_requested, GameStartData &start_data, const Settings &cmd_args)
 
void main_menu (MainMenuData *menudata)
 
void speed_tests ()
 

Private Attributes

bool list_video_modes = false
 
bool skip_main_menu = false
 
bool random_input = false
 
InputHandlerinput = nullptr
 
MyEventReceiverreceiver = nullptr
 
gui::IGUISkin * skin = nullptr
 

Constructor & Destructor Documentation

◆ ClientLauncher()

ClientLauncher::ClientLauncher ( )
default

◆ ~ClientLauncher()

ClientLauncher::~ClientLauncher ( )

References g_fontengine, g_gamecallback, g_sound_manager_singleton, RenderingEngine::get_instance(), input, and receiver.

+ Here is the call graph for this function:

Member Function Documentation

◆ init_args()

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

References GameStartData::address, Settings::exists(), g_settings, Settings::get(), Settings::getBool(), Settings::getFlag(), list_video_modes, GameStartData::name, random_input, skip_main_menu, and GameParams::world_path.

Referenced by run().

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

◆ init_engine()

bool ClientLauncher::init_engine ( )
private

References RenderingEngine::get_raw_device(), and receiver.

Referenced by run().

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

◆ init_input()

void ClientLauncher::init_input ( )
private

References errorstream, g_settings, RenderingEngine::get_raw_device(), Settings::getBool(), infostream, input, InputHandler::joystick, JoystickController::onJoystickConnect(), random_input, and receiver.

Referenced by run().

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

◆ launch_game()

◆ main_menu()

void ClientLauncher::main_menu ( MainMenuData menudata)
private

References g_menumgr, RenderingEngine::get_gui_env(), RenderingEngine::get_raw_device(), RenderingEngine::get_scene_manager(), RenderingEngine::get_video_driver(), guiroot, infostream, input, isMenuActive(), InputHandler::joystick, run(), porting::signal_handler_killstatus(), and sleep_ms.

Referenced by launch_game().

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

◆ run()

◆ speed_tests()

void ClientLauncher::speed_tests ( )
private

References TimeTaker::getTimerTime(), infostream, and TimeTaker::stop().

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

◆ list_video_modes

bool ClientLauncher::list_video_modes = false
private

Referenced by init_args(), and run().

◆ random_input

bool ClientLauncher::random_input = false
private

Referenced by init_args(), and init_input().

◆ receiver

MyEventReceiver* ClientLauncher::receiver = nullptr
private

◆ skin

gui::IGUISkin* ClientLauncher::skin = nullptr
private

Referenced by run().

◆ 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: