ManaPlus
Data Structures | Namespaces | Macros | Variables
client.cpp File Reference

(986a3bf)

#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
 
Clientclient = 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
 

Macro Definition Documentation

◆ ADDBUTTON

#define ADDBUTTON (   var,
  object 
)
Value:
var = object; \
x -= var->getWidth() + mButtonSpacing; \
var->setPosition(x, mButtonPadding); \
top->add(var);

Definition at line 801 of file client.cpp.

Variable Documentation

◆ client

Client* client = 0

Definition at line 187 of file client.cpp.

◆ errorMessage

std::string errorMessage

Definition at line 184 of file client.cpp.

◆ evolPacketOffset

int evolPacketOffset
extern

Definition at line 40 of file net.cpp.

Referenced by Client::unloadData().

◆ fpsManager

FPSmanager fpsManager
extern

◆ isSafeMode

bool isSafeMode = false

Definition at line 193 of file client.cpp.

◆ isTerminate

volatile bool isTerminate = false

Definition at line 209 of file client.cpp.

Referenced by Net::Download::downloadThread().

◆ itemIdLen

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 loginData

◆ mLastHost

unsigned int mLastHost = 0

◆ mSearchHash

unsigned long mSearchHash = 0

Definition at line 207 of file client.cpp.

◆ packets_main

bool packets_main = true

◆ packets_re

bool packets_re = false

◆ packets_zero

bool packets_zero = false

◆ packetsType

int packetsType = 0

Definition at line 199 of file client.cpp.

Referenced by EAthena::LoginRecv::processServerVersion().

◆ packetVersion

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().

◆ packetVersionMain

int packetVersionMain = 0

◆ packetVersionRe

int packetVersionRe = 0

◆ packetVersionZero

int packetVersionZero = 0

◆ runCounters

volatile bool runCounters

◆ serverVersion

int serverVersion = 0

◆ start_time

time_t start_time

Definition at line 205 of file client.cpp.

◆ textures_count

int textures_count = 0

Definition at line 208 of file client.cpp.

◆ tmwServerVersion

unsigned int tmwServerVersion = 0