![]() |
ManaPlus
|
#include <dialogsmanager.h>
Public Member Functions | |
| DialogsManager () | |
| void | playerDeath () |
| void | attributeChanged (const AttributesT id, const int64_t oldVal, const int64_t newVal) |
Public Member Functions inherited from AttributeListener | |
| AttributeListener () | |
| virtual | ~ AttributeListener () |
Public Member Functions inherited from PlayerDeathListener | |
| PlayerDeathListener () | |
| virtual | ~ PlayerDeathListener () |
Static Public Member Functions | |
| static void | closeDialogs () |
| static void | createUpdaterWindow () |
| static Window * | openErrorDialog (const std::string &header, const std::string &message, const Modal modal) |
Static Public Member Functions inherited from AttributeListener | |
| static void | distributeEvent (const AttributesT id, const int64_t oldVal, const int64_t newVal) |
| static void | addListener (AttributeListener *const listener) |
| static void | removeListener (const AttributeListener *const listener) |
Static Public Member Functions inherited from PlayerDeathListener | |
| static void | distributeEvent () |
| static void | addListener (PlayerDeathListener *const listener) |
| static void | removeListener (const PlayerDeathListener *const listener) |
Definition at line 38 of file dialogsmanager.h.
| DialogsManager::DialogsManager | ( | ) |
Definition at line 75 of file dialogsmanager.cpp.
|
virtual |
Implements AttributeListener.
Definition at line 179 of file dialogsmanager.cpp.
References _, Widget::addActionListener(), CAST_S32, config, CREATEWIDGETV, cur_time, PlayerInfo::getAttribute(), Configuration::getBoolValue(), Attributes::MAX_WEIGHT, Modal_false, DialogType::OK, Settings::overweightPercent, settings, ShowCenter_true, Attributes::TOTAL_WEIGHT, anonymous_namespace{dialogsmanager.cpp}::weightListener, weightNotice, and weightNoticeTime.
|
static |
Definition at line 81 of file dialogsmanager.cpp.
References NpcDialog::clearDialogs(), SellDialog::closeAll(), BuyDialog::closeAll(), BuySellDialog::closeAll(), NpcDialog::closeAll(), deathNotice, Net::InventoryHandler::destroyStorage(), inventoryHandler, and Window::scheduleDelete().
Referenced by QuitDialog::action(), PlayerPostDeathListener::action(), and Game::slowLogic().
|
static |
Definition at line 100 of file dialogsmanager.cpp.
References CREATEWIDGETV, UpdateType::Normal, Settings::oldUpdates, settings, Settings::updateHost, and updaterWindow.
|
static |
Definition at line 111 of file dialogsmanager.cpp.
References _, config, CREATEWIDGETR, DialogType::ERROR, Configuration::getBoolValue(), settings, ShowCenter_true, SOUND_ERROR, strprintf(), and Settings::supportUrl.
Referenced by Game::slowLogic().
|
virtual |
Implements PlayerDeathListener.
Definition at line 141 of file dialogsmanager.cpp.
References _, Widget::addActionListener(), CREATEWIDGETV, deathNotice, DeadDB::getRandomString(), GroupDb::isAllowCommand(), Modal_false, DialogType::OK, anonymous_namespace{dialogsmanager.cpp}::postDeathListener, ShowCenter_true, and SOUND_REQUEST.