 |
ManaPlus
|
#include <client.h>
The core part of the client. This class initializes all subsystems, runs the event loop, and shuts everything down again.
Definition at line 48 of file client.h.
◆ Client() [1/2]
◆ ~Client() [1/2]
◆ Client() [2/2]
◆ ~Client() [2/2]
◆ action() [1/2]
◆ action() [2/2]
Called when an action is recieved from a widget. It is used to be able to recieve a notification that an action has occured.
- Parameters
-
actionEvent | The event of the action. |
Implements ActionListener.
◆ focusWindow() [1/2]
void Client::focusWindow |
( |
| ) |
|
◆ focusWindow() [2/2]
void Client::focusWindow |
( |
| ) |
|
◆ gameClear() [1/2]
void Client::gameClear |
( |
| ) |
|
|
private |
Definition at line 434 of file client.cpp.
497 config.enableKeyLogging();
498 #endif // DEBUG_CONFIG
512 #endif // USE_PROFILER
514 #ifdef DEBUG_OPENGL_LEAKS
517 #endif // DEBUG_OPENGL_LEAKS
References Graphics::cleanUp(), XML::cleanupXML(), TouchManager::clear(), ConfigurationObject::clear(), PlayerInfo::clear(), TranslationManager::close(), SoundManager::close(), config, KeyboardConfig::deinit(), VirtFs::deinit(), delete2, WindowManager::deleteIcon(), ResourceManager::deleteInstance(), GraphicsManager::deleteRenderers(), WindowManager::deleteWindows(), dialogsManager, eventsManager, gui, ipc, joystick, keyboard, Logger::log(), Logger::log1(), logger, mCurrentDialog, popupManager, Configuration::removeOldKeys(), serverConfig, EventsManager::shutdown(), SoundManager::shutdown(), TouchManager::shutdown(), WindowContainer::slowLogic(), soundManager, stopTimers(), textures_count, touchManager, windowContainer, and Configuration::write().
Referenced by ~Client().
◆ gameClear() [2/2]
void Client::gameClear |
( |
| ) |
|
|
private |
◆ gameExec() [1/2]
Definition at line 576 of file client.cpp.
591 while (lastTickTime !=
tick_time && k < 40)
664 PRAGMA45(GCC diagnostic ignored "-Wswitch-enum")
714 BLOCK_END(
"Client::gameExec State::LOAD_DATA")
References Append_false, BLOCK_END, BLOCK_START, cur_time, Options::dataPath, delete2, desktop, Gui::draw(), eventsManager, State::EXIT, State::FORCE_QUIT, fpsManager, frame_count, State::GAME, State::GET_CHARACTERS, WindowManager::getIsMinimized(), gui, EventsManager::handleEvents(), Gui::handleInput(), Configuration::init(), initPaths(), Settings::limitFps, State::LOAD_DATA, TranslationManager::loadCurrentLang(), TranslationManager::loadDictionaryLang(), Settings::localDataDir, Logger::log(), Logger::log1(), logger, Gui::logic(), SoundManager::logic(), logic_count, mainGraphics, mCurrentDialog, mOldState, VirtFs::mountDir(), mState, Settings::options, pathJoin(), paths, PRAGMA45(), PROFILER_END, PROFILER_START, Desktop::reloadWallpaper(), SDL_framerateDelay(), VirtFs::searchAndAddArchives(), setPathsDefaults(), settings, SkipError_false, Options::skipUpdate, slowLogic(), Gui::slowLogic(), soundManager, State::START, stateGame(), tick_time, Graphics::updateScreen(), Settings::updatesDir, and UseVirtFs_true.
Referenced by mainGui().
◆ gameExec() [2/2]
◆ gameInit() [1/2]
void Client::gameInit |
( |
| ) |
|
Definition at line 169 of file client.cpp.
249 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0)
257 SDL_EnableUNICODE(1);
275 #if defined(USE_OPENGL)
276 #if !defined(ANDROID) && !defined(__APPLE__) && !defined(__native_client__)
282 #endif // !defined(ANDROID) && !defined(__APPLE__) &&
284 #endif // defined(USE_OPENGL)
309 #ifdef ENABLE_CUSTOMNLS
310 TranslationManager::loadGettextLang();
311 #endif // ENABLE_CUSTOMNLS
374 if (
mSkin !=
nullptr)
References SDL::allowScreenSaver(), Append_false, WindowManager::applyKeyRepeat(), ConfigManager::backupConfig(), branding, Options::brandingPath, ConfigManager::checkConfigVersion(), config, WindowManager::createWindows(), Options::dataPath, Cpu::detect(), GraphicsManager::detectVideoSettings(), dialogsManager, EventsManager::enableEvents(), Logger::error(), eventsManager, Dirs::extractDataDir(), fpsManager, FULL_VERSION, Configuration::getBoolValue(), Configuration::getConfigPath(), Configuration::getIntValue(), Skin::getOption(), Skin::getPadding(), Theme::getThemePath(), graphicsManager, gui, Configuration::incValue(), EventsManager::init(), KeyboardConfig::init(), InputManager::init(), Joystick::init(), TouchManager::init(), Configuration::init(), PlayerInfo::init(), ConfigManager::initConfiguration(), DyePalette::initFunctions(), initGraphics(), Dirs::initHomeDir(), GettextHelper::initLang(), SDL::initLogger(), initPaths(), initRand(), Dirs::initRootDir(), Dirs::initScreenshotDir(), initSoundManager(), WindowManager::initTitle(), inputManager, joystick, keyboard, Settings::limitFps, Theme::load(), TranslationManager::loadCurrentLang(), TranslationManager::loadDictionaryLang(), Settings::localDataDir, Logger::log(), Logger::log1(), Options::logFileName, Settings::logFileName, logger, logVars(), mainGraphics, mButtonPadding, mButtonSpacing, Dirs::mountDataDir(), VirtFs::mountDir(), mSkin, Settings::options, pathJoin(), paths, popupManager, Gui::postInit(), Graphics::postInit(), Logger::safeError(), Options::safeMode, SDL_initFramerate(), Theme::selectSkin(), setBrandingDefaults(), Logger::setDebugLog(), WindowManager::setFramerate(), WindowManager::setIcon(), Logger::setLogFile(), SDL::setLogLevel(), setPathsDefaults(), Logger::setReportUnimplemented(), settings, VirtFs::setWriteDir(), SkipError_false, start_time, startTimers(), ConfigManager::storeSafeParameters(), strprintf(), Options::test, theme, touchManager, KeyboardConfig::update(), Joystick::update(), Dirs::updateDataPath(), updateEnv(), WindowManager::updateScreenKeyboard(), and UseVirtFs_false.
Referenced by mainGui().
◆ gameInit() [2/2]
void Client::gameInit |
( |
| ) |
|
◆ getCurrentServer()
◆ getState() [1/2]
StateT Client::getState |
( |
| ) |
const |
|
inline |
Definition at line 68 of file client.h.
References mState.
Referenced by QuitDialog::action(), WorldSelectDialog::action(), UpdaterWindow::action(), RegisterDialog::canSubmit(), LoginDialog::canSubmit(), TmwAthena::GameHandler::connect(), EAthena::LoginHandler::connect(), EAthena::GameHandler::connect(), ServerDialog::connectToSelectedServer(), UpdaterWindow::enable(), EventsManager::handleActive(), EventsManager::handleEvents(), UpdaterWindow::keyPressed(), EAthena::GeneralRecv::processConnectionProblem(), TmwAthena::GeneralRecv::processConnectionProblem(), TmwAthena::LoginRecv::processServerVersion(), EAthena::LoginRecv::processUpdateHost2(), QuitDialog::QuitDialog(), Game::slowLogic(), UpdaterWindow::updateProgress(), and Game::~Game().
◆ getState() [2/2]
StateT Client::getState |
( |
| ) |
const |
|
inline |
◆ initConfigListeners()
void Client::initConfigListeners |
( |
| ) |
|
|
private |
◆ initFeatures()
void Client::initFeatures |
( |
| ) |
|
|
staticprivate |
◆ initGraphics() [1/2]
void Client::initGraphics |
( |
| ) |
|
|
staticprivate |
Definition at line 412 of file client.cpp.
References WindowManager::applyGamma(), WindowManager::applyGrabMode(), WindowManager::applyVSync(), Graphics::beginDraw(), config, Configuration::getBoolValue(), graphicsManager, imageHelper, GraphicsManager::initGraphics(), mainGraphics, ImageHelper::postInit(), runCounters, and setConfigDefaults2().
Referenced by gameInit().
◆ initGraphics() [2/2]
static void Client::initGraphics |
( |
| ) |
|
|
staticprivate |
◆ initPaths() [1/2]
void Client::initPaths |
( |
| ) |
|
|
staticprivate |
◆ initPaths() [2/2]
static void Client::initPaths |
( |
| ) |
|
|
staticprivate |
◆ initSoundManager() [1/2]
void Client::initSoundManager |
( |
| ) |
|
|
private |
Definition at line 389 of file client.cpp.
400 catch (
const char *
const err)
408 "Magick - Real.ogg"),
References branding, config, State::ERROR, errorMessage, Configuration::getBoolValue(), Configuration::getIntValue(), ConfigurationObject::getValue(), SoundManager::init(), Logger::log(), logger, mState, SoundManager::playMusic(), SoundManager::setMusicVolume(), SoundManager::setSfxVolume(), SkipError_true, and soundManager.
Referenced by gameInit().
◆ initSoundManager() [2/2]
void Client::initSoundManager |
( |
| ) |
|
|
private |
◆ initTradeFilter()
void Client::initTradeFilter |
( |
| ) |
|
|
static |
Definition at line 1831 of file client.cpp.
1833 const std::string tradeListName =
1836 std::ofstream tradeFile;
1837 struct stat statbuf;
1839 if ((stat(tradeListName.c_str(), &statbuf) != 0) ||
1840 !S_ISREG(statbuf.st_mode))
1842 tradeFile.open(tradeListName.c_str(),
1844 if (tradeFile.is_open())
1846 tradeFile <<
": sell" << std::endl;
1847 tradeFile <<
": buy" << std::endl;
1848 tradeFile <<
": trade" << std::endl;
1849 tradeFile <<
"i sell" << std::endl;
1850 tradeFile <<
"i buy" << std::endl;
1851 tradeFile <<
"i trade" << std::endl;
1852 tradeFile <<
"i trading" << std::endl;
1853 tradeFile <<
"i am buy" << std::endl;
1854 tradeFile <<
"i am sell" << std::endl;
1855 tradeFile <<
"i am trade" << std::endl;
1856 tradeFile <<
"i am trading" << std::endl;
1857 tradeFile <<
"i'm buy" << std::endl;
1858 tradeFile <<
"i'm sell" << std::endl;
1859 tradeFile <<
"i'm trade" << std::endl;
1860 tradeFile <<
"i'm trading" << std::endl;
1865 tradeListName.c_str())
References reportAlways, Settings::serverConfigDir, and settings.
◆ isTmw() [1/2]
static bool Client::isTmw |
( |
| ) |
|
|
static |
◆ isTmw() [2/2]
◆ loadData()
void Client::loadData |
( |
| ) |
|
|
private |
Definition at line 1979 of file client.cpp.
References Append_false, Options::dataPath, desktop, SpriteReference::Empty, Configuration::getStringValue(), AttributesEnum::init(), Configuration::init(), ActorSprite::load(), TranslationManager::loadCurrentLang(), DbManager::loadDb(), TranslationManager::loadDictionaryLang(), Settings::localDataDir, Logger::log(), logger, VirtFs::mountDir(), Settings::options, pathJoin(), paths, EquipmentWindow::prepareSlotNames(), Desktop::reloadWallpaper(), VirtFs::searchAndAddArchives(), setPathsDefaults(), settings, SkipError_false, Options::skipUpdate, spellManager, spellShortcut, PlayerInfo::stateChange(), BeingInfo::unknown, Settings::updatesDir, and UseVirtFs_true.
◆ logVars() [1/2]
◆ logVars() [2/2]
static void Client::logVars |
( |
| ) |
|
|
staticprivate |
◆ moveButtons() [1/2]
void Client::moveButtons |
( |
const int |
width | ) |
|
Definition at line 773 of file client.cpp.
References Widget::getWidth(), mAboutButton, mButtonPadding, mButtonSpacing, mHelpButton, mPerfomanceButton, mSetupButton, mThemesButton, mVideoButton, Widget::setPosition(), and x.
Referenced by WindowManager::resizeVideo().
◆ moveButtons() [2/2]
void Client::moveButtons |
( |
const int |
width | ) |
|
◆ optionChanged()
void Client::optionChanged |
( |
const std::string & |
name | ) |
|
Definition at line 1714 of file client.cpp.
1716 if (name ==
"fpslimit")
1722 else if (name ==
"guialpha" ||
1723 name ==
"enableGuiOpacity")
1730 else if (name ==
"gamma" ||
1731 name ==
"enableGamma")
1735 else if (name ==
"particleEmitterSkip")
1740 else if (name ==
"vsync")
1744 else if (name ==
"repeateInterval" ||
1745 name ==
"repeateDelay")
References WindowManager::applyGamma(), WindowManager::applyKeyRepeat(), WindowManager::applyVSync(), config, ParticleEngine::emitterSkip, Configuration::getBoolValue(), Configuration::getFloatValue(), Configuration::getIntValue(), Settings::guiAlpha, Settings::limitFps, ImageHelper::setEnableAlpha(), WindowManager::setFramerate(), and settings.
◆ runValidate()
void Client::runValidate |
( |
| ) |
|
|
private |
◆ setState() [1/2]
void Client::setState |
( |
const StateT |
state | ) |
|
|
inline |
Definition at line 65 of file client.h.
References mState.
Referenced by ChangePincodeListener::action(), NewPincodeListener::action(), PincodeListener::action(), ErrorListener::action(), ConnectionDialog::action(), ChangeEmailDialog::action(), ChangePasswordDialog::action(), QuitDialog::action(), WorldSelectDialog::action(), RegisterDialog::action(), CharSelectDialog::action(), LoginDialog::action(), action(), UpdaterWindow::action(), anonymous_namespace{client.cpp}::AccountListener::action(), anonymous_namespace{client.cpp}::LoginListener::action(), Ea::LoginHandler::chooseServer(), RegisterDialog::close(), LoginDialog::close(), CharSelectDialog::close(), ServerDialog::close(), EAthena::LoginHandler::connect(), ServerDialog::connectToSelectedServer(), UpdaterWindow::enable(), TmwAthena::GeneralHandler::flushNetwork(), EAthena::GeneralHandler::flushNetwork(), Ea::LoginHandler::getRegistrationDetails(), EventsManager::handleActive(), EventsManager::handleCommonEvents(), EventsManager::handleEvents(), Dirs::initUpdatesDir(), ServerDialog::keyPressed(), UpdaterWindow::keyPressed(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processCharCharacters(), TmwAthena::CharServerRecv::processCharLogin(), EAthena::CharServerRecv::processCharLogin(), Ea::CharServerRecv::processCharLoginError(), TmwAthena::CharServerRecv::processCharMapInfo(), EAthena::CharServerRecv::processCharMapInfo(), TmwAthena::LoginRecv::processCharPasswordResponse(), EAthena::LoginRecv::processCharPasswordResponse(), Ea::GameRecv::processCharSwitchResponse(), EAthena::GeneralRecv::processConnectionProblem(), TmwAthena::GeneralRecv::processConnectionProblem(), TmwAthena::LoginRecv::processLoginData(), EAthena::LoginRecv::processLoginData(), Ea::LoginRecv::processLoginError(), EAthena::LoginRecv::processLoginError2(), TmwAthena::GameRecv::processMapLogin(), EAthena::GameRecv::processMapLogin(), EAthena::GeneralRecv::processMapNotFound(), TmwAthena::LoginRecv::processServerVersion(), EAthena::LoginRecv::processServerVersion(), and EAthena::LoginRecv::processUpdateHost2().
◆ setState() [2/2]
void Client::setState |
( |
const StateT |
state | ) |
|
|
inline |
◆ slowLogic() [1/2]
void Client::slowLogic |
( |
| ) |
|
◆ slowLogic() [2/2]
void Client::slowLogic |
( |
| ) |
|
◆ stateConnectGame1()
void Client::stateConnectGame1 |
( |
| ) |
|
|
staticprivate |
◆ stateConnectServer1()
void Client::stateConnectServer1 |
( |
| ) |
|
|
private |
Definition at line 815 of file client.cpp.
851 "enableRemoteCommands", 1) != 0);
883 #endif // TMWA_SUPPORT
References State::CHOOSE_SERVER, config, Net::connectToServer(), dropShortcut, emoteShortcut, Settings::enableRemoteCommands, ConfigurationObject::getValue(), GuildManager::init(), PlayerRelationsManager::init(), PacketLimiter::initPacketLimiter(), ConfigManager::initServerConfig(), Dirs::initUsersDir(), Net::LoginHandler::isConnected(), itemShortcut, PlayerInfo::loadData(), Settings::login, loginData, loginHandler, Settings::onlineListUrl, Settings::options, LoginData::packetVersion, LoginData::password, Options::password, Settings::persistentIp, playerRelations, State::PRE_LOGIN, LoginData::registerUrl, LoginData::remember, LoginDialog::savedPassword, serverConfig, Settings::serverName, settings, SHORTCUT_TABS, Settings::supportUrl, Settings::updateMirrors, WindowManager::updateTitle(), LoginData::username, Options::username, and Configuration::write().
◆ stateGame()
void Client::stateGame |
( |
| ) |
|
|
private |
Definition at line 534 of file client.cpp.
References _, ADDBUTTON, BUTTON_SKIN, CREATEWIDGETV, desktop, Graphics::getHeight(), Gui::getTop(), Image::getWidth(), Graphics::getWidth(), gui, mAboutButton, mainGraphics, mButtonPadding, mHelpButton, mPerfomanceButton, mSetupButton, mThemesButton, mVideoButton, Widget::setSize(), top, and x.
Referenced by gameExec().
◆ stateGame1()
void Client::stateGame1 |
( |
| ) |
|
|
private |
Definition at line 908 of file client.cpp.
References _, ADDBUTTON, BUTTON_SKIN, CREATEWIDGETV, desktop, Graphics::getHeight(), Gui::getTop(), Image::getWidth(), Graphics::getWidth(), gui, mainGraphics, Widget::setSize(), top, and x.
◆ stateSwitchLogin1()
void Client::stateSwitchLogin1 |
( |
| ) |
|
|
private |
◆ stateWorldSelect1()
void Client::stateWorldSelect1 |
( |
| ) |
|
|
private |
◆ testsClear() [1/2]
void Client::testsClear |
( |
| ) |
|
|
private |
◆ testsClear() [2/2]
void Client::testsClear |
( |
| ) |
|
|
private |
◆ testsExec() [1/2]
int Client::testsExec |
( |
| ) |
|
|
static |
◆ testsExec() [2/2]
static int Client::testsExec |
( |
| ) |
|
|
static |
◆ testsInit() [1/2]
void Client::testsInit |
( |
| ) |
|
◆ testsInit() [2/2]
void Client::testsInit |
( |
| ) |
|
◆ unloadData()
void Client::unloadData |
( |
| ) |
|
|
private |
Definition at line 2043 of file client.cpp.
References LocalClan::clear(), ResourceManager::clearCache(), LoginData::clearUpdateHost(), Options::dataPath, evolPacketOffset, localClan, Settings::localDataDir, loginData, Settings::oldUpdates, Settings::options, packetVersion, packetVersionMain, packetVersionRe, packetVersionZero, pathJoin(), VirtFs::searchAndRemoveArchives(), serverVersion, settings, Options::skipUpdate, Settings::supportUrl, tmwServerVersion, DbManager::unloadDb(), UpdaterWindow::unloadUpdates(), VirtFs::unmountDirSilent(), and Settings::updatesDir.
◆ updatePinState() [1/2]
void Client::updatePinState |
( |
| ) |
|
◆ updatePinState() [2/2]
void Client::updatePinState |
( |
| ) |
|
◆ windowRemoved() [1/2]
void Client::windowRemoved |
( |
const Window *const |
window | ) |
|
◆ windowRemoved() [2/2]
void Client::windowRemoved |
( |
const Window *const |
window | ) |
|
◆ mAboutButton
◆ mButtonPadding
int Client::mButtonPadding |
|
private |
◆ mButtonSpacing
int Client::mButtonSpacing |
|
private |
◆ mConfigAutoSaved
bool Client::mConfigAutoSaved |
|
private |
◆ mCurrentDialog
Window * Client::mCurrentDialog |
|
private |
◆ mCurrentServer
◆ mGame
◆ mHelpButton
◆ mOldState
◆ mPerfomanceButton
Button * Client::mPerfomanceButton |
|
private |
◆ mPing
◆ mQuitDialog
◆ mSetupButton
◆ mSkin
◆ mState
◆ mThemesButton
Button * Client::mThemesButton |
|
private |
◆ mVideoButton
The documentation for this class was generated from the following files:
static void prepareSlotNames()
std::string getValue(const std::string &key, const std::string &deflt) const
#define reportAlways(...)
static void backupConfig(const std::string &name)
static void initGraphics()
TouchManager touchManager
virtual void disconnect() const =0
static std::string getThemePath()
const bool SkipError_true
std::vector< std::string > updateMirrors
void deleteValidateWindows()
ServerInfo mCurrentServer
void setLogLevel(const int level)
virtual const Worlds & getWorlds() const =0
static void setEnableAlpha(const bool n)
static void loadDictionaryLang()
bool enableRemoteCommands
Skin * load(const std::string &filename, const std::string &filename2, const bool full, const std::string &defaultPath)
ImageHelper * imageHelper
void safeError(const std::string &error_text) __attribute__((noreturn))
void setPathsDefaults(Configuration &cfg)
bool mountDir(std::string newDir, const Append append)
static void extractDataDir()
const bool SkipError_false
void setFeaturesDefaults(Configuration &cfg)
static void checkConfigVersion()
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wunused-result") int TestLauncher
virtual void updateScreen()=0
void allowScreenSaver(const bool allow)
void setFramerate(const unsigned int fpsLimit)
void detectVideoSettings()
std::vector< std::string > updateMirrors
std::string serverConfigDir
std::string pathJoin(std::string str1, const std::string &str2)
int getOption(const std::string &name) const
static void unloadUpdates(const std::string &dir)
bool handleEvents() const
void addListener(const std::string &key, ConfigListener *const listener)
#define ADDBUTTON(var, object)
const unsigned int SHORTCUT_TABS
void setState(const StateT state)
void playMusic(const std::string &fileName, const SkipError skipError)
const std::string & getConfigPath() const
virtual void disconnect() const =0
static void initTradeFilter()
void incValue(const std::string &key)
SpellShortcut * spellShortcut
bool unmountDirSilent(std::string oldDir)
bool setWriteDir(const std::string &newDir)
void postInit(Graphics *const graphics)
void SDL_initFramerate(FPSmanager *manager)
Initialize the framerate manager.
void searchAndAddArchives(const std::string &path, const std::string &ext, const Append append)
DropShortcut * dropShortcut
std::string strprintf(const char *const format,...)
static SpriteReference * Empty
unsigned int tmwServerVersion
Button * mPerfomanceButton
volatile bool runCounters
void searchAndRemoveArchives(const std::string &path, const std::string &ext)
void setBrandingDefaults(Configuration &cfg)
std::string onlineListUrl
static void initConfiguration()
const bool UseVirtFs_true
static void updateDataPath()
#define ADDBUTTON(var, object)
void setLogFile(const std::string &logFilename)
static void loadCurrentLang()
GraphicsManager graphicsManager
void setMusicVolume(const int volume)
std::string getStringValue(const std::string &key) const
const bool UseVirtFs_false
void updateScreenKeyboard(const int height)
void setDebugLog(const bool n)
float getFloatValue(const std::string &key) const
Net::LoginHandler * loginHandler
Configuration serverConfig
void stateChange(const StateT state)
void log1(const char *const log_text)
int getIntValue(const std::string &key) const
Net::GameHandler * gameHandler
static void mountDataDir()
PlayerRelationsManager playerRelations
static void initRootDir()
static void deleteRenderers()
static void initFeatures()
virtual bool isConnected() const =0
std::string onlineListUrl
void connectToServer(const ServerInfo &server)
static void storeSafeParameters()
static void initFunctions()
void setReportUnimplemented(const bool n)
void createValidateWindows()
#define BLOCK_START(name)
void setSfxVolume(const int volume)
SpellManager * spellManager
static std::string savedPassword
static void initUsersDir()
EmoteShortcut * emoteShortcut
static void initScreenshotDir()
EventsManager eventsManager
void setConfigDefaults2(Configuration &cfg)
static BeingInfo * unknown
void error(const std::string &error_text) __attribute__((noreturn))
Uint32 SDL_framerateDelay(FPSmanager *manager)
Delay execution to maintain a constant framerate and calculate fps.
static void initHomeDir()
SoundManager soundManager
void init(const std::string &filename, const UseVirtFs useResManager, const SkipError skipError)
int getWidth() const A_INLINE
static void initServerConfig(const std::string &serverName)
void log(const char *const log_text,...)
virtual bool isConnected() const =0
DialogsManager * dialogsManager
const Image *const restrict top
WindowContainer * windowContainer
ItemShortcut * itemShortcut[SHORTCUT_TABS]
bool getBoolValue(const std::string &key) const