Minetest  5.4.0
client.cpp File Reference
#include <iostream>
#include <algorithm>
#include <sstream>
#include <cmath>
#include <IFileSystem.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/tile.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 "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-sqlite3.h"
#include "serialization.h"
#include "guiscalingfilter.h"
#include "script/scripting_client.h"
#include "game.h"
#include "chatmessage.h"
#include "translation.h"
+ Include dependency graph for client.cpp:

Classes

struct  TextureUpdateArgs
 

Macros

#define set_world_path(hostname)
 

Typedefs

typedef struct TextureUpdateArgs TextureUpdateArgs
 

Functions

void writePlayerPos (LocalPlayer *myplayer, ClientMap *clientMap, NetworkPacket *pkt)
 
void texture_update_progress (void *args, u32 progress, u32 max_progress)
 

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:33
std::string path_user
Definition: porting.cpp:157
string to_string(T val)
Returns a string representing the value val.
Definition: string.h:387

Typedef Documentation

◆ TextureUpdateArgs

Function Documentation

◆ texture_update_progress()

void texture_update_progress ( void *  args,
u32  progress,
u32  max_progress 
)

References RenderingEngine::draw_load_screen(), porting::getTimeMs(), TextureUpdateArgs::guienv, TextureUpdateArgs::last_percent, TextureUpdateArgs::last_time_ms, TextureUpdateArgs::text_base, and TextureUpdateArgs::tsrc.

Referenced by Client::afterContentReceived().

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

◆ writePlayerPos()

void writePlayerPos ( LocalPlayer myplayer,
ClientMap clientMap,
NetworkPacket pkt 
)

References ClientMap::getCameraFov(), ClientMap::getControl(), LocalPlayer::getPitch(), LocalPlayer::getPosition(), Player::getSpeed(), LocalPlayer::getYaw(), Player::keyPressed, MAP_BLOCKSIZE, MYMIN, and MapDrawControl::wanted_range.

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