ManaPlus
|
#include "game.h"
#include "actormanager.h"
#include "client.h"
#include "configuration.h"
#include "effectmanager.h"
#include "eventsmanager.h"
#include "gamemodifiers.h"
#include "soundmanager.h"
#include "settings.h"
#include "being/crazymoves.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
#include "const/itemshortcut.h"
#include "const/spells.h"
#include "const/gui/chat.h"
#include "enums/being/beingdirection.h"
#include "fs/mkdir.h"
#include "fs/virtfs/fs.h"
#include "gui/dialogsmanager.h"
#include "gui/gui.h"
#include "gui/popupmanager.h"
#include "gui/viewport.h"
#include "gui/windowmanager.h"
#include "gui/windowmenu.h"
#include "gui/fonts/font.h"
#include "gui/shortcut/dropshortcut.h"
#include "gui/shortcut/emoteshortcut.h"
#include "gui/popups/popupmenu.h"
#include "gui/windows/bankwindow.h"
#include "gui/windows/clanwindow.h"
#include "gui/windows/cutinwindow.h"
#include "gui/windows/mailwindow.h"
#include "gui/windows/chatwindow.h"
#include "gui/windows/debugwindow.h"
#include "gui/windows/didyouknowwindow.h"
#include "gui/windows/emotewindow.h"
#include "gui/windows/equipmentwindow.h"
#include "gui/windows/inventorywindow.h"
#include "gui/windows/killstats.h"
#include "gui/windows/minimap.h"
#include "gui/windows/ministatuswindow.h"
#include "gui/windows/npcdialog.h"
#include "gui/windows/outfitwindow.h"
#include "gui/windows/setupwindow.h"
#include "gui/windows/shopwindow.h"
#include "gui/windows/shortcutwindow.h"
#include "gui/windows/skilldialog.h"
#include "gui/windows/socialwindow.h"
#include "gui/windows/statuswindow.h"
#include "gui/windows/tradewindow.h"
#include "gui/windows/questswindow.h"
#include "gui/windows/whoisonline.h"
#include "gui/widgets/tabs/chat/battletab.h"
#include "gui/widgets/createwidget.h"
#include "gui/widgets/emoteshortcutcontainer.h"
#include "gui/widgets/itemshortcutcontainer.h"
#include "gui/widgets/spellshortcutcontainer.h"
#include "gui/widgets/virtshortcutcontainer.h"
#include "gui/widgets/tabs/chat/gmtab.h"
#include "gui/widgets/tabs/chat/langtab.h"
#include "gui/widgets/tabs/chat/tradetab.h"
#include "input/inputmanager.h"
#include "input/joystick.h"
#include "input/keyboardconfig.h"
#include "input/touch/touchmanager.h"
#include "net/generalhandler.h"
#include "net/gamehandler.h"
#include "net/net.h"
#include "net/packetcounters.h"
#include "particle/particleengine.h"
#include "resources/delayedmanager.h"
#include "resources/mapreader.h"
#include "resources/screenshothelper.h"
#include "resources/db/mapdb.h"
#include "resources/map/map.h"
#include "resources/resourcemanager/resourcemanager.h"
#include "resources/sprite/animatedsprite.h"
#include "utils/delete2.h"
#include "utils/foreach.h"
#include "utils/gettext.h"
#include "utils/perfstat.h"
#include "utils/pnglib.h"
#include "utils/sdlcheckutils.h"
#include "utils/timer.h"
#include "listeners/assertlistener.h"
#include "listeners/errorlistener.h"
#include "net/tmwa/guildmanager.h"
#include <fstream>
#include "debug.h"
Go to the source code of this file.
Functions | |
static void | initEngines () |
static void | createGuiWindows () |
static void | destroyGuiWindows () |
Variables | |
QuitDialog * | quitDialog = 0 |
Window * | disconnectedDialog = 0 |
bool | mStatsReUpdated = false |
const time_t | adjustDelay = 10 |
|
static |
Create all the various globally accessible gui windows
Definition at line 195 of file game.cpp.
References _, ChatWindow::addSpecialChannelTab(), ShortcutWindow::addTab(), assertListener, bankWindow, battleChatTab, beingEquipmentWindow, ChatMsgType::BY_SERVER, cartWindow, ChatTab::chatLog(), chatWindow, clanWindow, SetupWindow::clearWindowsForReset(), config, CREATEWIDGETV, CREATEWIDGETV0, cutInWindow, ChatTabType::DEBUG, debugChatTab, debugWindow, delete2, didYouKnowWindow, dropShortcut, dropShortcutWindow, emoteShortcut, emoteShortcutWindow, emoteWindow, equipmentWindow, SetupWindow::externalUpdate(), FOR_EACH, Net::GeneralHandler::gameStarted(), GENERAL_CHANNEL, generalHandler, Configuration::getBoolValue(), PlayerInfo::getCartInventory(), PlayerInfo::getEquipment(), PlayerInfo::getInventory(), AssertListener::getMessages(), Net::getNetworkType(), IgnoreRecord_false, GameModifiers::init(), ChatTabType::INPUT, inventoryWindow, isSafeMode, itemShortcutWindow, killStats, EmoteShortcut::load(), DidYouKnowWindow::loadData(), ChatTab::loadFromLogFile(), ChatWindow::loadState(), localChatTab, localPlayer, mailWindow, minimap, miniStatusWindow, outfitWindow, questsWindow, Window::scheduleDelete(), ChatWindow::scheduleDelete(), ChatTab::setAllowHighlight(), setupWindow, Window::setVisible(), DidYouKnowWindow::setVisible(), shopWindow, SHORTCUT_TABS, ChatWindow::showGMTab(), skillDialog, socialWindow, SPELL_SHORTCUT_TABS, spellShortcutWindow, statusWindow, ServerType::TMWATHENA, Catch::toString(), TRADE_CHANNEL, tradeChatTab, tradeWindow, TryRemoveColors_true, LocalPlayer::updateStatus(), Visible_false, Visible_true, and whoIsOnline.
Referenced by Game::Game().
|
static |
Destroy all the globally accessible gui windows
Definition at line 349 of file game.cpp.
References bankWindow, battleChatTab, beingEquipmentWindow, cartWindow, chatWindow, clanWindow, GuildManager::clear(), cutInWindow, debugChatTab, debugWindow, delete2, dropShortcutWindow, emoteShortcutWindow, emoteWindow, equipmentWindow, Net::GeneralHandler::gameEnded(), generalHandler, GuildManager::getEnableGuildBot(), gmChatTab, guildManager, inventoryWindow, itemShortcutWindow, killStats, langChatTab, localChatTab, Logger::log(), logger, mailWindow, minimap, miniStatusWindow, outfitWindow, questsWindow, GuildManager::reload(), WhoIsOnline::setAllowUpdate(), shopWindow, skillDialog, socialWindow, spellShortcutWindow, statusWindow, tradeChatTab, tradeWindow, whoIsOnline, and windowMenu.
Referenced by Game::~Game().
|
static |
Initialize every game sub-engines in the right order
Definition at line 167 of file game.cpp.
References actorManager, crazyMoves, UpdateStatusListener::distributeEvent(), effectManager, gameHandler, GuildManager::init(), BeingInfo::init(), Net::GameHandler::initEngines(), joystick, keyboard, particleEngine, ParticleEngine::setMap(), ParticleEngine::setupEngine(), Joystick::update(), and KeyboardConfig::update().
Referenced by Game::Game().
const time_t adjustDelay = 10 |
Definition at line 162 of file game.cpp.
Referenced by Game::adjustPerfomance(), Game::resetAdjustLevel(), Game::slowLogic(), and Game::updateFrameRate().
Window* disconnectedDialog = 0 |
Definition at line 159 of file game.cpp.
Referenced by Game::Game(), and Game::slowLogic().
bool mStatsReUpdated = false |
Definition at line 161 of file game.cpp.
Referenced by ConnectionDialog::ConnectionDialog(), and KillStats::recalcStats().
QuitDialog* quitDialog = 0 |
Definition at line 158 of file game.cpp.
Referenced by InputManager::handleEvent(), and Game::handleMove().