ManaPlus
|
#include "progs/manaplus/client.h"
#include "chatlogger.h"
#include "configmanager.h"
#include "dirs.h"
#include "eventsmanager.h"
#include "game.h"
#include "graphicsmanager.h"
#include "main.h"
#include "party.h"
#include "pincodemanager.h"
#include "settings.h"
#include "soundmanager.h"
#include "spellmanager.h"
#include "being/localclan.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
#include "being/playerrelations.h"
#include "const/net/net.h"
#include "enums/being/attributesstrings.h"
#include "fs/virtfs/fs.h"
#include "fs/virtfs/tools.h"
#include "gui/dialogsmanager.h"
#include "gui/gui.h"
#include "gui/skin.h"
#include "gui/popupmanager.h"
#include "gui/windowmanager.h"
#include "gui/shortcut/dropshortcut.h"
#include "gui/shortcut/emoteshortcut.h"
#include "gui/shortcut/itemshortcut.h"
#include "gui/shortcut/spellshortcut.h"
#include "gui/windows/changeemaildialog.h"
#include "gui/windows/changepassworddialog.h"
#include "gui/windows/charselectdialog.h"
#include "gui/windows/connectiondialog.h"
#include "gui/windows/equipmentwindow.h"
#include "gui/windows/logindialog.h"
#include "gui/windows/npcdialog.h"
#include "gui/windows/okdialog.h"
#include "gui/windows/registerdialog.h"
#include "gui/windows/serverdialog.h"
#include "gui/windows/setupwindow.h"
#include "gui/windows/updaterwindow.h"
#include "gui/windows/quitdialog.h"
#include "gui/windows/worldselectdialog.h"
#include "gui/widgets/button.h"
#include "gui/widgets/createwidget.h"
#include "gui/widgets/desktop.h"
#include "gui/widgets/windowcontainer.h"
#include "input/inputmanager.h"
#include "input/joystick.h"
#include "input/keyboardconfig.h"
#include "input/touch/touchmanager.h"
#include "net/charserverhandler.h"
#include "net/chathandler.h"
#include "net/download.h"
#include "net/gamehandler.h"
#include "net/generalhandler.h"
#include "net/guildhandler.h"
#include "net/inventoryhandler.h"
#include "net/ipc.h"
#include "net/loginhandler.h"
#include "net/net.h"
#include "net/updatetypeoperators.h"
#include "net/useragent.h"
#include "net/packetlimiter.h"
#include "net/partyhandler.h"
#include "net/tmwa/guildmanager.h"
#include "particle/particleengine.h"
#include "resources/dbmanager.h"
#include "resources/imagehelper.h"
#include "resources/dye/dyepalette.h"
#include "resources/resourcemanager/resourcemanager.h"
#include "resources/sprite/spritereference.h"
#include "utils/checkutils.h"
#include "utils/cpu.h"
#include "utils/delete2.h"
#include "utils/dumplibs.h"
#include "utils/dumpsizes.h"
#include "utils/env.h"
#include "utils/fuzzer.h"
#include "utils/gettext.h"
#include "utils/gettexthelper.h"
#include "utils/mrand.h"
#include "utils/perfstat.h"
#include "utils/sdlcheckutils.h"
#include "utils/sdlhelper.h"
#include "utils/timer.h"
#include "utils/translation/translationmanager.h"
#include "listeners/assertlistener.h"
#include "listeners/errorlistener.h"
#include "test/testlauncher.h"
#include "test/testmain.h"
#include <sys/stat.h>
#include <SDL_framerate.h>
#include "debug.h"
Go to the source code of this file.
Data Structures | |
class | anonymous_namespace{client.cpp}::AccountListener |
class | anonymous_namespace{client.cpp}::LoginListener |
Namespaces | |
anonymous_namespace{client.cpp} | |
Macros | |
#define | ADDBUTTON(var, object) |
Variables | |
std::string | errorMessage |
LoginData | loginData |
Client * | client = 0 |
FPSmanager | fpsManager |
int | evolPacketOffset |
volatile bool | runCounters |
bool | isSafeMode = false |
int | serverVersion = 0 |
int | packetVersion = 0 |
int | packetVersionMain = 0 |
int | packetVersionRe = 0 |
int | packetVersionZero = 0 |
int | packetsType = 0 |
int | itemIdLen = 2 |
bool | packets_main = true |
bool | packets_re = false |
bool | packets_zero = false |
unsigned int | tmwServerVersion = 0 |
time_t | start_time |
unsigned int | mLastHost = 0 |
unsigned long | mSearchHash = 0 |
int | textures_count = 0 |
volatile bool | isTerminate = false |
anonymous_namespace{client.cpp}::AccountListener | anonymous_namespace{client.cpp}::accountListener |
anonymous_namespace{client.cpp}::LoginListener | anonymous_namespace{client.cpp}::loginListener |
#define ADDBUTTON | ( | var, | |
object | |||
) |
Definition at line 801 of file client.cpp.
Client* client = 0 |
Definition at line 187 of file client.cpp.
std::string errorMessage |
Definition at line 184 of file client.cpp.
|
extern |
Definition at line 40 of file net.cpp.
Referenced by Client::unloadData().
|
extern |
Definition at line 101 of file windowmanager.cpp.
Referenced by WindowManager::getFramerate(), WindowManager::init(), and WindowManager::setFramerate().
bool isSafeMode = false |
Definition at line 193 of file client.cpp.
volatile bool isTerminate = false |
Definition at line 209 of file client.cpp.
Referenced by Net::Download::downloadThread().
int itemIdLen = 2 |
Definition at line 200 of file client.cpp.
Referenced by EAthena::CashShopHandler::buyItem(), EAthena::CashShopHandler::buyItems(), EAthena::BarterHandler::buyItems(), EAthena::NpcHandler::buyItems(), EAthena::BuyingStoreHandler::create(), EAthena::BeingRecv::processBeingViewEquipment(), EAthena::BeingRecv::processBeingViewEquipment2(), EAthena::BuyingStoreRecv::processBuyingStoreItemsList(), EAthena::BuyingStoreRecv::processBuyingStoreOwnItems(), EAthena::CashShopRecv::processCashShopOpen(), EAthena::CashShopRecv::processCashShopSchedule(), EAthena::InventoryRecv::processEquipmentContinue(), EAthena::InventoryRecv::processInventoryContinue(), EAthena::VendingRecv::processItemsList(), EAthena::MarketRecv::processMarketBuyAck(), EAthena::MarketRecv::processMarketOpen(), EAthena::BuySellRecv::processNpcBuy(), EAthena::VendingRecv::processOpen(), EAthena::BarterRecv::processOpenShop(), EAthena::InventoryRecv::processPlayerCartEquip(), EAthena::InventoryRecv::processPlayerCartItems(), EAthena::InventoryRecv::processPlayerCookingList(), EAthena::InventoryRecv::processPlayerEquipment(), EAthena::InventoryRecv::processPlayerInventory(), EAthena::InventoryRecv::processPlayerRefineList(), EAthena::InventoryRecv::processPlayerRepairList(), EAthena::InventoryRecv::processPlayerStorage(), EAthena::InventoryRecv::processPlayerStorageEquip(), EAthena::RefineRecv::processRefineAddItem(), EAthena::SearchStoreRecv::processSearchAck(), TmwAthena::LoginRecv::processServerVersion(), EAthena::SkillRecv::processSkillArrowCreateList(), EAthena::SkillRecv::processSkillProduceMixList(), Net::MessageIn::readItemId(), TmwAthena::LoginHandler::updatePacketVersion(), EAthena::updateProtocol(), TmwAthena::updateProtocol(), and Net::MessageOut::writeItemId().
LoginData loginData |
Definition at line 185 of file client.cpp.
Referenced by EAthena::CharServerRecv::processCharLogin(), TmwAthena::CharServerRecv::processCharLogin(), EAthena::LoginRecv::processLoginData(), TmwAthena::LoginRecv::processLoginData(), Ea::LoginRecv::processUpdateHost(), EAthena::LoginRecv::processUpdateHost2(), Client::stateConnectServer1(), and Client::unloadData().
unsigned int mLastHost = 0 |
Definition at line 206 of file client.cpp.
Referenced by EAthena::GameRecv::processMapLogin(), TmwAthena::GameRecv::processMapLogin(), Ea::Network::realConnect(), and KillStats::recalcStats().
unsigned long mSearchHash = 0 |
Definition at line 207 of file client.cpp.
bool packets_main = true |
Definition at line 201 of file client.cpp.
Referenced by EAthena::LoginRecv::processServerVersion(), EAthena::BeingRecv::processSolveCharName(), and EAthena::updateProtocol().
bool packets_re = false |
Definition at line 202 of file client.cpp.
Referenced by EAthena::LoginRecv::processServerVersion(), EAthena::BeingRecv::processSolveCharName(), and EAthena::updateProtocol().
bool packets_zero = false |
Definition at line 203 of file client.cpp.
Referenced by EAthena::ItemRecv::processItemDropped(), EAthena::PartyRecv::processPartyInfo(), EAthena::PartyRecv::processPartyMemberInfo(), EAthena::LoginRecv::processServerVersion(), EAthena::BeingRecv::processSolveCharName(), EAthena::NpcHandler::requestAirship(), EAthena::LoginHandler::sendOtpCode(), and EAthena::updateProtocol().
int packetsType = 0 |
Definition at line 199 of file client.cpp.
Referenced by EAthena::LoginRecv::processServerVersion().
int packetVersion = 0 |
Definition at line 195 of file client.cpp.
Referenced by EAthena::Mail2Handler::addItem(), EAthena::ChatHandler::battleTalk(), EAthena::BattleGroundHandler::beginAck(), EAthena::MarketHandler::buyItem(), EAthena::CashShopHandler::buyItem(), EAthena::CashShopHandler::buyItems(), EAthena::MarketHandler::buyItems(), EAthena::MapHandler::camera(), EAthena::Mail2Handler::cancelWriteMail(), EAthena::AdminHandler::changeDress(), EAthena::ClanHandler::chat(), EAthena::GuildHandler::chat(), EAthena::PartyHandler::chat(), EAthena::BankHandler::check(), EAthena::BattleGroundHandler::checkState(), EAthena::MapHandler::clientVersion(), EAthena::BankHandler::close(), EAthena::BuyingStoreHandler::close(), EAthena::BuySellHandler::close(), EAthena::CashShopHandler::close(), EAthena::MarketHandler::close(), EAthena::SearchStoreHandler::close(), EAthena::Mail2Handler::closeMailBox(), EAthena::PlayerHandler::closeStyleWindow(), EAthena::BuyingStoreHandler::create(), EAthena::Mail2Handler::deleteMail(), EAthena::BankHandler::deposit(), EAthena::Network::dispatchMessages(), EAthena::InventoryHandler::dropItem(), EAthena::InventoryHandler::equipItem(), EAthena::PetHandler::evolution(), EAthena::InventoryHandler::favoriteItem(), EAthena::HomunculusHandler::feed(), EAthena::SkillHandler::feelSaveOk(), EAthena::HomunculusHandler::fire(), EAthena::SkillHandler::getAlchemistRanks(), EAthena::SkillHandler::getBlacksmithRanks(), EAthena::SkillHandler::getPkRanks(), EAthena::SkillHandler::getTaekwonRanks(), EAthena::InventoryHandler::identifyItem(), EAthena::GuildHandler::invite(), EAthena::PartyHandler::invite(), EAthena::SkillHandler::lessEffects(), EAthena::InventoryHandler::moveItemInventoryToStorage(), EAthena::CharServerHandler::newCharacter(), EAthena::SearchStoreHandler::nextPage(), EAthena::Mail2Handler::nextPage(), EAthena::BankHandler::open(), EAthena::BuyingStoreHandler::open(), EAthena::AttendanceHandler::openAttendanceWindow(), EAthena::Mail2Handler::openMailBox(), EAthena::Mail2Handler::openWriteMail(), EAthena::PlayerHandler::pickUp(), EAthena::GameHandler::ping(), EAthena::ChatHandler::privateMessage(), EAthena::CashShopRecv::processCashShopOpen(), EAthena::CharServerRecv::processCharLogin(), EAthena::ChatRecv::processFormatMessageStringColor(), EAthena::ItemRecv::processItemDropped(), EAthena::Mail2Recv::processMailListPage(), EAthena::InventoryRecv::processPlayerCartItems(), EAthena::InventoryRecv::processPlayerInventory(), EAthena::InventoryRecv::processPlayerStorage(), EAthena::LoginRecv::processServerVersion(), TmwAthena::LoginRecv::processServerVersion(), EAthena::Mail2Handler::readMail(), EAthena::CharServerRecv::readPlayerData(), EAthena::Mail2Handler::refreshMailList(), EAthena::BattleGroundHandler::registerBg(), EAthena::BattleGroundHandler::rekoveRequest(), EAthena::Mail2Handler::removeItem(), EAthena::Mail2Handler::requestCheckName(), EAthena::Mail2Handler::requestItems(), EAthena::Mail2Handler::requestMoney(), EAthena::BeingHandler::requestNameByCharId(), EAthena::BeingHandler::requestNameById(), EAthena::CashShopHandler::requestPoints(), EAthena::BeingHandler::requestRanks(), EAthena::CashShopHandler::requestTab(), EAthena::AdminHandler::resetCooldowns(), EAthena::CashShopHandler::schedule(), EAthena::SearchStoreHandler::search(), EAthena::SearchStoreHandler::select(), EAthena::InventoryHandler::selectCart(), EAthena::PlayerHandler::selectStyle(), EAthena::BuyingStoreHandler::sell(), EAthena::Mail2Handler::sendMail(), EAthena::PlayerHandler::setDestination(), EAthena::PlayerHandler::setDirection(), EAthena::PartyHandler::setShareExperience(), EAthena::PartyHandler::setShareItems(), EAthena::PlayerHandler::setTitle(), EAthena::PlayerHandler::shortcutShiftRow(), EAthena::NpcHandler::stringInput(), EAthena::ChatHandler::talk(), EAthena::updateProtocol(), EAthena::SkillHandler::usePos(), and EAthena::BankHandler::withdraw().
int packetVersionMain = 0 |
Definition at line 196 of file client.cpp.
Referenced by EAthena::BarterHandler::buyItems(), EAthena::BarterHandler::close(), EAthena::InventoryHandler::expandInventory(), EAthena::InventoryHandler::expandInventoryConfirm(), EAthena::InventoryHandler::expandInventoryReject(), Net::MessageIn::getVersionMain(), EAthena::GameHandler::ping2(), EAthena::FriendsRecv::processFriendsList(), EAthena::FriendsRecv::processPlayerOnline(), EAthena::NpcHandler::requestAirship(), EAthena::AttendanceHandler::requestReward(), EAthena::PlayerHandler::selectStyle(), EAthena::LoginHandler::sendMobileCode(), EAthena::LoginHandler::sendOtpCode(), EAthena::PlayerHandler::setShortcut(), EAthena::PlayerHandler::shortcutShiftRow(), EAthena::updateProtocol(), EAthena::SkillHandler::useBeingStart(), and EAthena::SkillHandler::useStop().
int packetVersionRe = 0 |
Definition at line 197 of file client.cpp.
Referenced by EAthena::BarterHandler::buyItems(), EAthena::BarterHandler::close(), EAthena::InventoryHandler::expandInventory(), EAthena::InventoryHandler::expandInventoryConfirm(), EAthena::InventoryHandler::expandInventoryReject(), Net::MessageIn::getVersionRe(), EAthena::GameHandler::ping2(), EAthena::FriendsRecv::processFriendsList(), EAthena::FriendsRecv::processPlayerOnline(), EAthena::NpcHandler::requestAirship(), EAthena::AttendanceHandler::requestReward(), EAthena::PlayerHandler::selectStyle(), EAthena::LoginHandler::sendMobileCode(), EAthena::LoginHandler::sendOtpCode(), EAthena::PlayerHandler::setShortcut(), EAthena::PlayerHandler::shortcutShiftRow(), EAthena::updateProtocol(), EAthena::SkillHandler::useBeingStart(), and EAthena::SkillHandler::useStop().
int packetVersionZero = 0 |
Definition at line 198 of file client.cpp.
Referenced by EAthena::BarterHandler::buyItems(), EAthena::AdminHandler::changeDress(), EAthena::BarterHandler::close(), EAthena::InventoryHandler::expandInventory(), EAthena::InventoryHandler::expandInventoryConfirm(), EAthena::InventoryHandler::expandInventoryReject(), Net::MessageIn::getVersionZero(), EAthena::GameHandler::ping2(), EAthena::AttendanceHandler::requestReward(), EAthena::PlayerHandler::selectStyle(), EAthena::PlayerHandler::setShortcut(), EAthena::PlayerHandler::shortcutShiftRow(), EAthena::updateProtocol(), EAthena::SkillHandler::useBeingStart(), and EAthena::SkillHandler::useStop().
volatile bool runCounters |
Definition at line 192 of file client.cpp.
Referenced by PacketCounters::incInBytes(), PacketCounters::incInPackets(), PacketCounters::incOutBytes(), PacketCounters::incOutPackets(), and PacketCounters::update().
int serverVersion = 0 |
Definition at line 194 of file client.cpp.
Referenced by EAthena::LoginHandler::changePassword(), EAthena::ServerFeatures::haveCreateCharGender(), EAthena::ServerFeatures::haveEmailOnDelete(), EAthena::ServerFeatures::haveEmailOnRegister(), EAthena::ServerFeatures::haveExtendedDropsPosition(), EAthena::ServerFeatures::haveExtendedRiding(), EAthena::ServerFeatures::haveJoinChannel(), EAthena::ServerFeatures::haveKillerId(), EAthena::ServerFeatures::haveLookSelection(), EAthena::ServerFeatures::haveMapServerVersion(), EAthena::ServerFeatures::haveMove3(), EAthena::ServerFeatures::haveMovePet(), EAthena::ServerFeatures::haveMoveWhileSit(), EAthena::ServerFeatures::haveNpcGender(), EAthena::ServerFeatures::havePlayerStatusUpdate(), EAthena::ServerFeatures::haveRaceSelection(), EAthena::ServerFeatures::haveServerOnlineList(), EAthena::ServerFeatures::haveServerWarpNames(), EAthena::ServerFeatures::haveTalkPet(), UpdaterWindow::loadPatch(), EAthena::CharServerHandler::newCharacter(), EAthena::SkillRecv::processPlayerSkills(), EAthena::LoginRecv::processServerVersion(), TmwAthena::LoginRecv::processServerVersion(), EAthena::CharServerRecv::readPlayerData(), and EAthena::InventoryHandler::useItem().
time_t start_time |
Definition at line 205 of file client.cpp.
int textures_count = 0 |
Definition at line 208 of file client.cpp.
unsigned int tmwServerVersion = 0 |
Definition at line 204 of file client.cpp.
Referenced by TmwAthena::ServerFeatures::haveCreateCharGender(), TmwAthena::ServerFeatures::haveIncompleteChatMessages(), TmwAthena::ServerFeatures::haveMonsterAttackRange(), TmwAthena::ServerFeatures::haveMove3(), TmwAthena::ServerFeatures::haveNpcGender(), TmwAthena::ServerFeatures::haveServerHp(), TmwAthena::ServerFeatures::haveServerOnlineList(), TmwAthena::LoginRecv::processServerVersion(), TmwAthena::LoginHandler::sendLoginRegister(), TmwAthena::ChatHandler::talk(), and TmwAthena::ChatHandler::who().