Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
client.cpp File Reference
#include <iostream>
#include <algorithm>
#include <sstream>
#include <cmath>
#include <IFileSystem.h>
#include <json/json.h>
#include "client.h"
#include "network/clientopcodes.h"
#include "network/connection.h"
#include "network/networkpacket.h"
#include "threading/mutex_auto_lock.h"
#include "client/clientevent.h"
#include "client/gameui.h"
#include "client/renderingengine.h"
#include "client/sound.h"
#include "client/texturepaths.h"
#include "client/mesh_generator_thread.h"
#include "client/particles.h"
#include "client/localplayer.h"
#include "util/auth.h"
#include "util/directiontables.h"
#include "util/pointedthing.h"
#include "util/serialize.h"
#include "util/string.h"
#include "util/srp.h"
#include "filesys.h"
#include "mapblock_mesh.h"
#include "mapblock.h"
#include "mapsector.h"
#include "minimap.h"
#include "modchannels.h"
#include "content/mods.h"
#include "profiler.h"
#include "shader.h"
#include "gettext.h"
#include "clientmap.h"
#include "clientmedia.h"
#include "version.h"
#include "database/database-files.h"
#include "database/database-sqlite3.h"
#include "serialization.h"
#include "guiscalingfilter.h"
#include "script/scripting_client.h"
#include "game.h"
#include "chatmessage.h"
#include "translation.h"
#include "content/mod_configuration.h"
#include "mapnode.h"
+ Include dependency graph for client.cpp:

Classes

struct  TextureUpdateArgs
 

Macros

#define set_world_path(hostname)
 

Functions

void writePlayerPos (LocalPlayer *myplayer, ClientMap *clientMap, NetworkPacket *pkt, bool camera_inverted)
 

Variables

gui::IGUIEnvironment * guienv
 

Macro Definition Documentation

◆ set_world_path

#define set_world_path ( hostname)
Value:
world_path = porting::path_user \
+ DIR_DELIM + "worlds" \
+ DIR_DELIM + "server_" \
+ hostname + "_" + std::to_string(address.getPort());
#define DIR_DELIM
Definition filesys.h:34
std::string path_user
Definition porting.cpp:174

Referenced by Client::initLocalMapSaving().

Function Documentation

◆ writePlayerPos()

void writePlayerPos ( LocalPlayer * myplayer,
ClientMap * clientMap,
NetworkPacket * pkt,
bool camera_inverted )

References Player::control, ClientMap::getCameraFov(), PlayerControl::getKeysPressed(), LocalPlayer::getPitch(), LocalPlayer::getPosition(), Player::getSpeed(), ClientMap::getWantedRange(), LocalPlayer::getYaw(), and MAP_BLOCKSIZE.

Referenced by Client::interact(), and Client::sendPlayerPos().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ guienv