ManaPlus
Macros | Variables
client.cpp File Reference

(986a3bf)

#include "progs/dyecmd/client.h"
#include "configmanager.h"
#include "dirs.h"
#include "eventsmanager.h"
#include "graphicsmanager.h"
#include "main.h"
#include "settings.h"
#include "soundmanager.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/widgets/button.h"
#include "gui/widgets/createwidget.h"
#include "gui/widgets/desktop.h"
#include "gui/widgets/window.h"
#include "gui/widgets/windowcontainer.h"
#include "input/inputmanager.h"
#include "input/joystick.h"
#include "input/keyboardconfig.h"
#include "input/touch/touchmanager.h"
#include "resources/imagehelper.h"
#include "resources/dye/dyepalette.h"
#include "resources/resourcemanager/resourcemanager.h"
#include "utils/cpu.h"
#include "utils/delete2.h"
#include "utils/env.h"
#include "utils/fuzzer.h"
#include "utils/gettext.h"
#include "utils/gettexthelper.h"
#include "utils/mrand.h"
#include "utils/sdlcheckutils.h"
#include "utils/sdlhelper.h"
#include "utils/timer.h"
#include "utils/translation/translationmanager.h"
#include "configuration.h"
#include "net/ipc.h"
#include <SDL_framerate.h>
#include "debug.h"

Go to the source code of this file.

Macros

#define ADDBUTTON(var, object)
 

Variables

std::string errorMessage
 
Clientclient = 0
 
FPSmanager fpsManager
 
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
 

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 530 of file client.cpp.

Variable Documentation

◆ client

Client* client = 0

Definition at line 118 of file client.cpp.

Referenced by ChangeEmailDialog::action(), ChangePasswordDialog::action(), CharSelectDialog::action(), ConnectionDialog::action(), LoginDialog::action(), QuitDialog::action(), RegisterDialog::action(), UpdaterWindow::action(), WorldSelectDialog::action(), ChangePincodeListener::action(), ErrorListener::action(), NewPincodeListener::action(), PincodeListener::action(), anonymous_namespace{client.cpp}::AccountListener::action(), anonymous_namespace{client.cpp}::LoginListener::action(), LoginDialog::canSubmit(), RegisterDialog::canSubmit(), Ea::LoginHandler::chooseServer(), CharSelectDialog::close(), LoginDialog::close(), RegisterDialog::close(), ServerDialog::close(), EAthena::GameHandler::connect(), EAthena::LoginHandler::connect(), TmwAthena::GameHandler::connect(), ServerDialog::connectToSelectedServer(), UpdaterWindow::enable(), EAthena::GeneralHandler::flushNetwork(), TmwAthena::GeneralHandler::flushNetwork(), Ea::LoginHandler::getRegistrationDetails(), EventsManager::handleActive(), EventsManager::handleCommonEvents(), EventsManager::handleEvents(), Dirs::initUpdatesDir(), ServerDialog::keyPressed(), UpdaterWindow::keyPressed(), mainGui(), PincodeManager::pinOk(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processCharCharacters(), EAthena::CharServerRecv::processCharLogin(), TmwAthena::CharServerRecv::processCharLogin(), Ea::CharServerRecv::processCharLoginError(), EAthena::CharServerRecv::processCharMapInfo(), TmwAthena::CharServerRecv::processCharMapInfo(), EAthena::LoginRecv::processCharPasswordResponse(), TmwAthena::LoginRecv::processCharPasswordResponse(), Ea::GameRecv::processCharSwitchResponse(), EAthena::GeneralRecv::processConnectionProblem(), TmwAthena::GeneralRecv::processConnectionProblem(), EAthena::LoginRecv::processLoginData(), TmwAthena::LoginRecv::processLoginData(), Ea::LoginRecv::processLoginError(), EAthena::LoginRecv::processLoginError2(), EAthena::GameRecv::processMapLogin(), TmwAthena::GameRecv::processMapLogin(), EAthena::GeneralRecv::processMapNotFound(), PincodeManager::processPincodeStatus(), EAthena::LoginRecv::processServerVersion(), TmwAthena::LoginRecv::processServerVersion(), EAthena::LoginRecv::processUpdateHost2(), QuitDialog::QuitDialog(), WindowManager::resizeVideo(), Client::runValidate(), Game::slowLogic(), UpdaterWindow::updateProgress(), Game::~Game(), and Window::~Window().

◆ errorMessage

std::string errorMessage

◆ fpsManager

FPSmanager fpsManager
extern

Definition at line 101 of file windowmanager.cpp.

Referenced by Client::gameExec(), and Client::gameInit().

◆ isSafeMode

bool isSafeMode = false

◆ itemIdLen

int itemIdLen = 2

Definition at line 130 of file client.cpp.

◆ mLastHost

unsigned int mLastHost = 0

Definition at line 136 of file client.cpp.

◆ mSearchHash

unsigned long mSearchHash = 0

Definition at line 137 of file client.cpp.

Referenced by ConnectionDialog::ConnectionDialog().

◆ packets_main

bool packets_main = true

Definition at line 131 of file client.cpp.

◆ packets_re

bool packets_re = false

Definition at line 132 of file client.cpp.

◆ packets_zero

bool packets_zero = false

Definition at line 133 of file client.cpp.

◆ packetsType

int packetsType = 0

Definition at line 129 of file client.cpp.

◆ packetVersion

int packetVersion = 0

Definition at line 125 of file client.cpp.

Referenced by Client::unloadData().

◆ packetVersionMain

int packetVersionMain = 0

Definition at line 126 of file client.cpp.

Referenced by Client::unloadData().

◆ packetVersionRe

int packetVersionRe = 0

Definition at line 127 of file client.cpp.

Referenced by Client::unloadData().

◆ packetVersionZero

int packetVersionZero = 0

Definition at line 128 of file client.cpp.

Referenced by Client::unloadData().

◆ runCounters

volatile bool runCounters

Definition at line 122 of file client.cpp.

Referenced by Client::initGraphics().

◆ serverVersion

int serverVersion = 0

Definition at line 124 of file client.cpp.

Referenced by Client::unloadData().

◆ start_time

time_t start_time

Definition at line 135 of file client.cpp.

Referenced by Client::gameInit().

◆ textures_count

int textures_count = 0

◆ tmwServerVersion

unsigned int tmwServerVersion = 0

Definition at line 134 of file client.cpp.

Referenced by Client::unloadData().