#include <client.h>
Static Public Member Functions | |
static const std::string & | getBuiltinLuaPath () |
static const std::string & | getClientModsLuaPath () |
Public Attributes | |
bool | m_simple_singleplayer_mode |
bool | inhibit_inventory_revert = false |
Private Member Functions | |
void | loadMods () |
void | peerAdded (con::IPeer *peer) override |
void | deletingPeer (con::IPeer *peer, bool timeout) override |
void | initLocalMapSaving (const Address &address, const std::string &hostname, bool is_local_server) |
void | ReceiveAll () |
void | sendPlayerPos () |
void | deleteAuthData () |
void | sendInit (const std::string &playerName) |
void | startAuth (AuthMechanism chosen_auth_mechanism) |
void | sendDeletedBlocks (std::vector< v3s16 > &blocks) |
void | sendGotBlocks (const std::vector< v3s16 > &blocks) |
void | sendRemovedSounds (const std::vector< s32 > &soundList) |
bool | canSendChatMessage () const |
Static Private Member Functions | |
static AuthMechanism | choseAuthMech (const u32 mechs) |
Client::Client | ( | const char * | playername, |
const std::string & | password, | ||
MapDrawControl & | control, | ||
IWritableTextureSource * | tsrc, | ||
IWritableShaderSource * | shsrc, | ||
IWritableItemDefManager * | itemdef, | ||
NodeDefManager * | nodedef, | ||
ISoundManager * | sound, | ||
MtEventManager * | event, | ||
RenderingEngine * | rendering_engine, | ||
GameUI * | game_ui, | ||
ELoginRegister | allow_login_or_register ) |
References Database::beginSave(), DIR_DELIM, g_settings, Settings::getBool(), Settings::getU16(), m_cache_save_interval, m_env, m_mesh_grid, m_minimap, m_mod_storage_database, porting::path_user, and ClientEnvironment::setLocalPlayer().
Client::~Client | ( | ) |
References RenderingEngine::cleanupMeshCache(), deleteAuthData(), con::IConnection::Disconnect(), Database::endSave(), ISoundManager::freeId(), MeshUpdateManager::getNextResult(), guiScalingCacheClear(), m_con, m_detached_inventories, m_inventory_from_server, m_media_downloader, m_mesh_update_manager, m_minimap, m_mod_storage_database, m_rendering_engine, m_shutdown, m_sound, m_sounds_client_to_server, MeshUpdateResult::map_blocks, MeshUpdateResult::mesh, MeshUpdateManager::stop(), and MeshUpdateManager::wait().
|
inline |
References m_access_denied.
|
inline |
References m_access_denied_reason.
|
inline |
References m_activeobjects_received.
References Map::addNodeAndUpdate(), addUpdateMeshTaskWithEdge(), ClientEnvironment::getMap(), m_env, and p().
Referenced by handleCommand_AddNode().
void Client::addUpdateMeshTask | ( | v3s16 | blockpos, |
bool | ack_to_server = false, | ||
bool | urgent = false ) |
References Map::getBlockNoCreateNoEx(), ClientEnvironment::getMap(), m_env, m_mesh_update_manager, p(), and MeshUpdateManager::updateBlock().
Referenced by addUpdateMeshTaskForNode().
void Client::addUpdateMeshTaskForNode | ( | v3s16 | nodepos, |
bool | ack_to_server = false, | ||
bool | urgent = false ) |
References addUpdateMeshTask(), ClientEnvironment::getMap(), getNodeBlockPos(), infostream, m_env, m_mesh_update_manager, MAP_BLOCKSIZE, p(), and MeshUpdateManager::updateBlock().
Referenced by setCrack().
void Client::addUpdateMeshTaskWithEdge | ( | v3s16 | blockpos, |
bool | ack_to_server = false, | ||
bool | urgent = false ) |
References ClientEnvironment::getMap(), m_env, m_mesh_update_manager, and MeshUpdateManager::updateBlock().
Referenced by addNode(), handleCommand_BlockData(), and removeNode().
void Client::afterContentReceived | ( | ) |
References IWritableItemDefManager::applyTextureOverrides(), NodeDefManager::applyTextureOverrides(), DIR_DELIM, RenderingEngine::draw_load_screen(), TextureOverrideSource::getItemTextureOverrides(), ClientEnvironment::getLocalPlayer(), TextureOverrideSource::getNodeTileOverrides(), getTextureDirs(), porting::getTimeMs(), guienv, TextureUpdateArgs::guienv, guiScalingCacheClear(), infostream, TextureUpdateArgs::last_percent, TextureUpdateArgs::last_time_ms, LC_Ready, m_env, m_itemdef, m_itemdef_received, m_mesh_update_manager, m_mods_loaded, m_nodedef, m_nodedef_received, m_rendering_engine, m_script, m_shsrc, m_state, m_tsrc, mediaReceived(), ClientScripting::on_client_ready(), IWritableTextureSource::rebuildImagesAndTextures(), IWritableShaderSource::rebuildShaders(), NodeDefManager::runNodeResolveCallbacks(), sendReady(), NodeDefManager::setNodeRegistrationStatus(), MeshUpdateManager::start(), TextureUpdateArgs::text_base, TextureUpdateArgs::tsrc, NodeDefManager::updateAliases(), NodeDefManager::updateTextures(), and wstrgettext().
|
overridevirtual |
Implements IGameDef.
References CONTENT_IGNORE, errorstream, and FATAL_ERROR.
|
private |
References CLIENT_CHAT_MESSAGE_LIMIT_PER_10S, m_chat_message_allowance, and m_last_chat_message_sent.
Referenced by sendChatMessage(), and step().
|
inline |
References m_csm_restriction_flags.
|
inline |
References checkPrivilege().
Referenced by LocalPlayer::applyControl(), LocalPlayer::move(), LocalPlayer::old_move(), ClientEnvironment::step(), GenericCAO::step(), and Camera::update().
|
inline |
References m_privileges.
Referenced by checkLocalPrivilege(), and GUIFormSpecMenu::OnEvent().
|
staticprivate |
References AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_NONE, and AUTH_MECHANISM_SRP.
Referenced by handleCommand_Hello(), and sendChangePassword().
void Client::clearOutChatQueue | ( | ) |
References m_out_chat_queue.
void Client::connect | ( | const Address & | address, |
const std::string & | address_name, | ||
bool | is_local_server ) |
References con::IConnection::Connect(), CONNECTION_TIMEOUT, con::createMTP(), infostream, initLocalMapSaving(), Address::isIPv6(), LC_Created, m_access_denied, m_access_denied_reason, m_access_denied_reconnect, m_address_name, m_con, m_proto_ver, m_state, Address::print(), and sanity_check.
References BS, checkCSMRestrictionFlag, CSM_RF_LOOKUP_NODES, floatToInt(), ClientEnvironment::getLocalPlayer(), LocalPlayer::getPosition(), m_csm_restriction_noderange, and m_env.
int Client::CSMClampRadius | ( | v3s16 | pos, |
int | radius ) |
References BS, checkCSMRestrictionFlag, CSM_RF_LOOKUP_NODES, floatToInt(), ClientEnvironment::getLocalPlayer(), LocalPlayer::getPosition(), m_csm_restriction_noderange, and m_env.
Helper function for Client Side Modding CSM restrictions are applied there, this should not be used for core engine.
p | |
is_valid_position |
References BS, checkCSMRestrictionFlag, CSM_RF_LOOKUP_NODES, floatToInt(), ClientEnvironment::getLocalPlayer(), ClientEnvironment::getMap(), Map::getNode(), LocalPlayer::getPosition(), m_csm_restriction_noderange, m_env, and p().
|
private |
References AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_NONE, AUTH_MECHANISM_SRP, m_auth_data, m_chosen_auth_mech, and srp_user_delete().
Referenced by ~Client(), handleCommand_AcceptSudoMode(), handleCommand_AuthAccept(), and handleCommand_DenySudoMode().
|
overrideprivatevirtual |
Implements con::PeerHandler.
References infostream, m_access_denied, and m_access_denied_reason.
Client::DISABLE_CLASS_COPY | ( | Client | ) |
void Client::drawLoadScreen | ( | const std::wstring & | text, |
float | dtime, | ||
int | percent ) |
References RenderingEngine::draw_load_screen(), guienv, m_rendering_engine, m_tsrc, and RenderingEngine::run().
|
inline |
References m_address_name.
float Client::getAnimationTime | ( | ) |
References m_animation_time.
Referenced by ClientMap::renderMap().
|
static |
References DIR_DELIM, and porting::path_share.
Referenced by loadMods().
|
inline |
References m_camera.
Referenced by GameGlobalShaderConstantSetter::onSetConstants(), GenericCAO::removeFromScene(), ClientMap::renderMap(), OffsetCameraStep::reset(), DrawHUD::run(), DrawWield::run(), MapPostFxStep::run(), OffsetCameraStep::run(), GenericCAO::setAttachment(), ClientMap::updateDrawList(), GenericCAO::updateMeshCulling(), and GenericCAO::updateNametag().
bool Client::getChatMessage | ( | std::wstring & | message | ) |
ClientEvent * Client::getClientEvent | ( | ) |
References FATAL_ERROR_IF, and m_client_event_queue.
|
static |
References DIR_DELIM, and porting::path_share.
Referenced by loadMods().
|
inline |
References ClientEnvironment::getPlayerNames(), and m_env.
Referenced by GUIChatConsole::OnEvent().
int Client::getCrackLevel | ( | ) |
References m_crack_level.
Referenced by MeshUpdateQueue::addBlock(), and ClientMap::renderMap().
v3s16 Client::getCrackPos | ( | ) |
References m_crack_pos.
Referenced by MeshUpdateQueue::addBlock().
|
overridevirtual |
Implements IGameDef.
|
inline |
References m_csm_restriction_flags.
float Client::getCurRate | ( | ) |
References con::CUR_DL_RATE, con::CUR_INC_RATE, con::IConnection::getLocalStat(), and m_con.
|
inline |
References m_env.
Referenced by PlayerInventoryFormSource::getForm(), Camera::notifyFovChange(), GameGlobalShaderConstantSetter::onSetConstants(), ClientMap::renderMap(), ShadowRenderer::renderShadowMap(), MapPostFxStep::run(), and Camera::update().
MtEventManager * Client::getEventManager | ( | ) |
References m_event.
Referenced by LocalPlayer::applyControl(), LocalPlayer::move(), LocalPlayer::old_move(), Camera::step(), and ClientEnvironment::step().
const std::string & Client::getFormspecPrepend | ( | ) | const |
References Player::formspec_prepend, ClientEnvironment::getLocalPlayer(), and m_env.
u16 Client::getHP | ( | ) |
References ClientEnvironment::getLocalPlayer(), LocalPlayer::hp, and m_env.
|
overridevirtual |
Reimplemented from InventoryManager.
References InventoryLocation::CURRENT_PLAYER, InventoryLocation::DETACHED, FATAL_ERROR, NodeMetadata::getInventory(), ClientEnvironment::getLocalPlayer(), ClientEnvironment::getMap(), Player::getName(), Map::getNodeMetadata(), Player::inventory, m_detached_inventories, m_env, InventoryLocation::name, InventoryLocation::NODEMETA, InventoryLocation::p, InventoryLocation::PLAYER, InventoryLocation::type, and InventoryLocation::UNDEFINED.
Referenced by Game::openInventory().
|
overridevirtual |
|
inline |
References m_map_seed.
|
virtual |
References errorstream, FATAL_ERROR_IF, RenderingEngine::get_filesystem(), RenderingEngine::get_scene_manager(), m_mesh_data, m_rendering_engine, and RenderingEngine::removeMesh().
Referenced by GenericCAO::addToScene(), and GUIFormSpecMenu::parseModel().
|
inline |
References m_mesh_grid.
Referenced by MeshUpdateQueue::addBlock(), MeshUpdateQueue::fillDataFromMapBlocks(), ClientMap::renderMap(), ClientMap::renderMapShadows(), and ClientMap::updateDrawList().
|
inline |
References m_minimap.
Referenced by GameGlobalShaderConstantSetter::onSetConstants(), GenericCAO::removeFromScene(), and GenericCAO::updateMarker().
|
overridevirtual |
Implements IGameDef.
References ModChannelMgr::getModChannel(), and m_modchannel_mgr.
const std::string * Client::getModFile | ( | std::string | filename | ) |
References m_mod_vfs.
|
overridevirtual |
Implements IGameDef.
|
inlineoverridevirtual |
Implements IGameDef.
References m_mod_storage_database.
|
overridevirtual |
Implements IGameDef.
References m_nodedef.
Referenced by Minimap::Minimap().
|
virtual |
References m_particle_manager.
|
inline |
References m_privileges.
|
inline |
References m_proto_ver.
Referenced by handleCommand_LocalPlayerAnimations(), and hasServerReplied().
float Client::getRTT | ( | ) |
References con::AVG_RTT, con::IConnection::getPeerStat(), m_con, and PEER_ID_SERVER.
Referenced by step().
scene::ISceneManager * Client::getSceneManager | ( | ) |
References RenderingEngine::get_scene_manager(), and m_rendering_engine.
Referenced by ClientEnvironment::addActiveObject(), and GUIFormSpecMenu::parseModel().
|
inline |
References m_script.
Referenced by LocalFormspecHandler::gotText().
const Address Client::getServerAddress | ( | ) |
References con::IConnection::GetPeerAddress(), m_con, and PEER_ID_SERVER.
|
virtual |
References m_shsrc.
Referenced by Minimap::Minimap(), GenericCAO::addToScene(), ClientMap::renderMapShadows(), and PostProcessingStep::run().
|
virtual |
|
inline |
References m_state.
ITextureSource * Client::getTextureSource | ( | ) |
References m_tsrc.
Referenced by Minimap::Minimap(), and tsrc().
|
inline |
References NetworkPacket::getCommand(), ToClientCommandHandler::handler, and toClientCommandTable.
Referenced by ProcessData().
void Client::handleCommand_AcceptSudoMode | ( | NetworkPacket * | pkt | ) |
References AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_NONE, deleteAuthData(), m_chosen_auth_mech, m_new_password, m_password, startAuth(), and verbosestream.
void Client::handleCommand_AccessDenied | ( | NetworkPacket * | pkt | ) |
References accessDeniedStrings, NetworkPacket::getCommand(), NetworkPacket::getRemainingBytes(), NetworkPacket::getSize(), m_access_denied, m_access_denied_reason, m_access_denied_reconnect, SERVER_ACCESSDENIED_CUSTOM_STRING, SERVER_ACCESSDENIED_MAX, SERVER_ACCESSDENIED_TOO_MANY_USERS, TOCLIENT_ACCESS_DENIED, and wide_to_utf8().
void Client::handleCommand_ActiveObjectMessages | ( | NetworkPacket * | pkt | ) |
References deSerializeString16(), errorstream, NetworkPacket::getSize(), NetworkPacket::getString(), m_env, ClientEnvironment::processActiveObjectMessage(), readU16(), and BaseException::what().
void Client::handleCommand_ActiveObjectRemoveAdd | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::addActiveObject(), infostream, m_activeobjects_received, m_env, NetworkPacket::readLongString(), ClientEnvironment::removeActiveObject(), and BaseException::what().
void Client::handleCommand_AddNode | ( | NetworkPacket * | pkt | ) |
References addNode(), MapNode::deSerialize(), NetworkPacket::getSize(), NetworkPacket::getU8(), NetworkPacket::getU8Ptr(), m_server_ser_ver, p(), and MapNode::serializedLength().
void Client::handleCommand_AddParticleSpawner | ( | NetworkPacket * | pkt | ) |
References CE_ADD_PARTICLESPAWNER, ServerParticleTexture::deSerialize(), ParticleParamTypes::deSerializeParameterValue(), deSerializeString32(), NetworkPacket::getSize(), NetworkPacket::getString(), m_client_event_queue, m_proto_ver, p(), readF32(), readU16(), readU32(), and readU8().
void Client::handleCommand_AnnounceMedia | ( | NetworkPacket * | pkt | ) |
References ClientMediaDownloader::addFile(), ClientMediaDownloader::addRemoteServer(), BasicStrfnd< T >::at_end(), base64_decode(), errorstream, NetworkPacket::getSize(), infostream, MeshUpdateManager::isRunning(), ClientMediaDownloader::isStarted(), m_media_downloader, m_mesh_update_manager, m_remote_media_servers, BasicStrfnd< T >::next(), sanity_check, ClientMediaDownloader::step(), and trim().
void Client::handleCommand_AuthAccept | ( | NetworkPacket * | pkt | ) |
References BS, deleteAuthData(), ClientEnvironment::getLocalPlayer(), infostream, LC_Init, m_env, m_map_seed, m_recommended_send_interval, m_state, m_sudo_auth_methods, Send(), LocalPlayer::setPosition(), and TOSERVER_INIT2.
void Client::handleCommand_BlockData | ( | NetworkPacket * | pkt | ) |
References addUpdateMeshTaskWithEdge(), MapSector::createBlankBlock(), MapBlock::deSerialize(), MapBlock::deSerializeNetworkSpecific(), Map::emergeSector(), MapSector::getBlockNoCreateNoEx(), ClientEnvironment::getMap(), MapSector::getPos(), NetworkPacket::getSize(), NetworkPacket::getString(), m_env, m_localdb, m_server_ser_ver, p(), and ServerMap::saveBlock().
void Client::handleCommand_Breath | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), m_env, and LocalPlayer::setBreath().
void Client::handleCommand_ChatMessage | ( | NetworkPacket * | pkt | ) |
References CHATMESSAGE_TYPE_MAX, m_script, ChatMessage::message, modsLoaded(), ScriptApiClient::on_receiving_message(), pushToChatQueue(), ChatMessage::sender, ChatMessage::timestamp, ChatMessage::type, and wide_to_utf8().
void Client::handleCommand_CloudParams | ( | NetworkPacket * | pkt | ) |
References CE_CLOUD_PARAMS, NetworkPacket::getRemainingBytes(), and m_client_event_queue.
void Client::handleCommand_CSMRestrictionFlags | ( | NetworkPacket * | pkt | ) |
References loadMods(), m_csm_restriction_flags, and m_csm_restriction_noderange.
void Client::handleCommand_DeathScreenLegacy | ( | NetworkPacket * | pkt | ) |
References CE_DEATHSCREEN_LEGACY, and m_client_event_queue.
void Client::handleCommand_DeleteParticleSpawner | ( | NetworkPacket * | pkt | ) |
References CE_DELETE_PARTICLESPAWNER, and m_client_event_queue.
void Client::handleCommand_DenySudoMode | ( | NetworkPacket * | pkt | ) |
References CHATMESSAGE_TYPE_SYSTEM, deleteAuthData(), and pushToChatQueue().
void Client::handleCommand_Deprecated | ( | NetworkPacket * | pkt | ) |
References NetworkPacket::getCommand(), NetworkPacket::getPeerId(), infostream, ToClientCommandHandler::name, and toClientCommandTable.
void Client::handleCommand_DetachedInventory | ( | NetworkPacket * | pkt | ) |
References Inventory::deSerialize(), NetworkPacket::getRemainingBytes(), NetworkPacket::getRemainingString(), infostream, m_detached_inventories, and m_itemdef.
void Client::handleCommand_EyeOffset | ( | NetworkPacket * | pkt | ) |
References Player::eye_offset_first, Player::eye_offset_third, Player::eye_offset_third_front, ClientEnvironment::getLocalPlayer(), and m_env.
void Client::handleCommand_FadeSound | ( | NetworkPacket * | pkt | ) |
References ISoundManager::fadeSound(), m_sound, m_sounds_server_to_client, and step().
void Client::handleCommand_FormspecPrepend | ( | NetworkPacket * | pkt | ) |
References Player::formspec_prepend, ClientEnvironment::getLocalPlayer(), and m_env.
void Client::handleCommand_Fov | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), m_camera, m_env, Camera::notifyFovChange(), and Player::setFov().
void Client::handleCommand_Hello | ( | NetworkPacket * | pkt | ) |
References Any, AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_NONE, AUTH_MECHANISM_SRP, choseAuthMech(), con::IConnection::Disconnect(), errorstream, NetworkPacket::getSize(), infostream, Login, m_access_denied, m_access_denied_reason, m_allow_login_or_register, m_auth_data, m_chosen_auth_mech, m_con, m_proto_ver, m_server_ser_ver, Register, ser_ver_supported(), srp_user_delete(), and startAuth().
void Client::handleCommand_HP | ( | NetworkPacket * | pkt | ) |
References CE_PLAYER_DAMAGE, ClientEnvironment::getLocalPlayer(), LocalPlayer::hp, m_client_event_queue, m_env, m_script, modsLoaded(), and ScriptApiClient::on_hp_modification().
void Client::handleCommand_HudAdd | ( | NetworkPacket * | pkt | ) |
void Client::handleCommand_HudChange | ( | NetworkPacket * | pkt | ) |
void Client::handleCommand_HudRemove | ( | NetworkPacket * | pkt | ) |
References CE_HUDRM, and m_client_event_queue.
void Client::handleCommand_HudSetFlags | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), Minimap::getModeDef(), Minimap::getModeIndex(), HUD_FLAG_MINIMAP_RADAR_VISIBLE, Player::hud_flags, m_env, m_minimap, MINIMAP_TYPE_RADAR, Minimap::nextMode(), and MinimapModeDef::type.
void Client::handleCommand_HudSetMoon | ( | NetworkPacket * | pkt | ) |
void Client::handleCommand_HudSetParam | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), LocalPlayer::hotbar_image, LocalPlayer::hotbar_selected_image, Player::hud_hotbar_itemcount, HUD_HOTBAR_ITEMCOUNT_MAX, HUD_PARAM_HOTBAR_IMAGE, HUD_PARAM_HOTBAR_ITEMCOUNT, HUD_PARAM_HOTBAR_SELECTED_IMAGE, m_env, and readS32().
void Client::handleCommand_HudSetSky | ( | NetworkPacket * | pkt | ) |
References SkyboxParams::bgcolor, SkyboxParams::body_orbit_tilt, CE_SET_MOON, CE_SET_SKY, CE_SET_STARS, CE_SET_SUN, SkyboxParams::clouds, deSerializeString16(), SkyboxParams::fog_color, SkyboxParams::fog_distance, SkyboxParams::fog_moon_tint, SkyboxParams::fog_start, SkyboxParams::fog_sun_tint, SkyboxParams::fog_tint_type, SkyboxDefaults::getMoonDefaults(), NetworkPacket::getRemainingBytes(), NetworkPacket::getSize(), SkyboxDefaults::getSkyColorDefaults(), SkyboxDefaults::getStarDefaults(), NetworkPacket::getString(), SkyboxDefaults::getSunDefaults(), m_client_event_queue, m_proto_ver, ClientEvent::moon_params, readARGB8(), readU16(), readU8(), ClientEvent::set_sky, SkyboxParams::sky_color, ClientEvent::star_params, ClientEvent::sun_params, SunParams::sunrise_visible, SkyboxParams::textures, ClientEvent::type, SkyboxParams::type, MoonParams::visible, StarParams::visible, and SunParams::visible.
void Client::handleCommand_HudSetStars | ( | NetworkPacket * | pkt | ) |
References CE_SET_STARS, StarParams::count, StarParams::day_opacity, SkyboxDefaults::getStarDefaults(), m_client_event_queue, StarParams::scale, StarParams::starcolor, and StarParams::visible.
void Client::handleCommand_HudSetSun | ( | NetworkPacket * | pkt | ) |
void Client::handleCommand_Inventory | ( | NetworkPacket * | pkt | ) |
References Inventory::deSerialize(), ClientEnvironment::getLocalPlayer(), NetworkPacket::getSize(), NetworkPacket::getString(), Player::inventory, m_env, m_inventory_from_server, m_inventory_from_server_age, and m_update_wielded_item.
void Client::handleCommand_InventoryFormSpec | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), Player::inventory_formspec, m_env, and NetworkPacket::readLongString().
void Client::handleCommand_ItemDef | ( | NetworkPacket * | pkt | ) |
References decompressZlib(), IWritableItemDefManager::deSerialize(), NetworkPacket::getSize(), infostream, MeshUpdateManager::isRunning(), m_itemdef, m_itemdef_received, m_mesh_update_manager, m_proto_ver, NetworkPacket::readLongString(), and sanity_check.
void Client::handleCommand_LocalPlayerAnimations | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::getLocalPlayer(), getProtoVersion(), LocalPlayer::last_animation, Player::local_animation_speed, Player::local_animations, m_env, and NO_ANIM.
void Client::handleCommand_Media | ( | NetworkPacket * | pkt | ) |
References ClientMediaDownloader::conventionalTransferDone(), errorstream, NetworkPacket::getSize(), infostream, MeshUpdateManager::isRunning(), ClientMediaDownloader::isStarted(), m_media_downloader, m_mesh_update_manager, m_pending_media_downloads, NetworkPacket::readLongString(), and sanity_check.
void Client::handleCommand_MediaPush | ( | NetworkPacket * | pkt | ) |
References SHA1::addBytes(), clientMediaUpdateCache(), SHA1::getDigest(), loadMedia(), m_pending_media_downloads, m_proto_ver, m_remote_media_servers, NetworkPacket::readLongString(), string_allowed(), TEXTURENAME_ALLOWED_CHARS, and verbosestream.
void Client::handleCommand_MinimapModes | ( | NetworkPacket * | pkt | ) |
References Minimap::addMode(), Minimap::clearModes(), m_minimap, and Minimap::setModeIndex().
void Client::handleCommand_ModChannelMsg | ( | NetworkPacket * | pkt | ) |
References ModChannelMgr::channelRegistered(), NetworkPacket::getPeerId(), m_modchannel_mgr, m_script, ScriptApiModChannels::on_modchannel_message(), and verbosestream.
void Client::handleCommand_ModChannelSignal | ( | NetworkPacket * | pkt | ) |
References infostream, ModChannelMgr::leaveChannel(), m_modchannel_mgr, m_script, MODCHANNEL_SIGNAL_CHANNEL_NOT_REGISTERED, MODCHANNEL_SIGNAL_JOIN_FAILURE, MODCHANNEL_SIGNAL_JOIN_OK, MODCHANNEL_SIGNAL_LEAVE_FAILURE, MODCHANNEL_SIGNAL_LEAVE_OK, MODCHANNEL_SIGNAL_SET_STATE, MODCHANNEL_STATE_INIT, MODCHANNEL_STATE_MAX, MODCHANNEL_STATE_READ_WRITE, ScriptApiModChannels::on_modchannel_signal(), ModChannelMgr::setChannelState(), and warningstream.
void Client::handleCommand_Movement | ( | NetworkPacket * | pkt | ) |
References BS, ClientEnvironment::getLocalPlayer(), m_env, Player::movement_acceleration_air, Player::movement_acceleration_default, Player::movement_acceleration_fast, Player::movement_gravity, Player::movement_liquid_fluidity, Player::movement_liquid_fluidity_smooth, Player::movement_liquid_sink, Player::movement_speed_climb, Player::movement_speed_crouch, Player::movement_speed_fast, Player::movement_speed_jump, and Player::movement_speed_walk.
void Client::handleCommand_MovePlayer | ( | NetworkPacket * | pkt | ) |
References CE_PLAYER_FORCE_MOVE, ClientEnvironment::getLocalPlayer(), infostream, m_client_event_queue, m_env, and LocalPlayer::setPosition().
void Client::handleCommand_MovePlayerRel | ( | NetworkPacket * | pkt | ) |
References LocalPlayer::addPosition(), ClientEnvironment::getLocalPlayer(), and m_env.
void Client::handleCommand_NodeDef | ( | NetworkPacket * | pkt | ) |
References decompressZlib(), NodeDefManager::deSerialize(), NetworkPacket::getSize(), infostream, MeshUpdateManager::isRunning(), m_mesh_update_manager, m_nodedef, m_nodedef_received, m_proto_ver, NetworkPacket::readLongString(), and sanity_check.
void Client::handleCommand_NodemetaChanged | ( | NetworkPacket * | pkt | ) |
References NodeMetadataList::begin(), decompressZlib(), NodeMetadataList::deSerialize(), NodeMetadataList::end(), ClientEnvironment::getMap(), NetworkPacket::getSize(), Map::isValidPosition(), m_env, m_itemdef, NetworkPacket::readLongString(), and Map::setNodeMetadata().
|
inline |
void Client::handleCommand_OverrideDayNightRatio | ( | NetworkPacket * | pkt | ) |
References CE_OVERRIDE_DAY_NIGHT_RATIO, and m_client_event_queue.
void Client::handleCommand_PlayerSpeed | ( | NetworkPacket * | pkt | ) |
References LocalPlayer::addVelocity(), ClientEnvironment::getLocalPlayer(), and m_env.
void Client::handleCommand_PlaySound | ( | NetworkPacket * | pkt | ) |
References ISoundManager::allocateId(), BS, SoundSpec::fade, ISoundManager::freeId(), SoundSpec::gain, ClientEnvironment::getActiveObject(), ClientActiveObject::getPosition(), ClientActiveObject::getVelocity(), Local, SoundSpec::loop, m_env, m_sound, m_sounds_client_to_server, m_sounds_server_to_client, m_sounds_to_objects, SoundSpec::name, Object, SoundSpec::pitch, ISoundManager::playSound(), ISoundManager::playSoundAt(), Position, sendRemovedSounds(), and SoundSpec::start_time.
void Client::handleCommand_Privileges | ( | NetworkPacket * | pkt | ) |
References infostream, and m_privileges.
void Client::handleCommand_RemoveNode | ( | NetworkPacket * | pkt | ) |
References NetworkPacket::getSize(), p(), and removeNode().
void Client::handleCommand_SetLighting | ( | NetworkPacket * | pkt | ) |
References Lighting::bloom_intensity, Lighting::bloom_radius, Lighting::bloom_strength_factor, AutoExposure::center_weight_power, Lighting::exposure, AutoExposure::exposure_correction, LocalPlayer::getLighting(), ClientEnvironment::getLocalPlayer(), NetworkPacket::getRemainingBytes(), AutoExposure::luminance_max, AutoExposure::luminance_min, m_env, Lighting::saturation, Lighting::shadow_intensity, Lighting::shadow_tint, AutoExposure::speed_bright_dark, AutoExposure::speed_dark_bright, and Lighting::volumetric_light_strength.
void Client::handleCommand_ShowFormSpec | ( | NetworkPacket * | pkt | ) |
References CE_SHOW_FORMSPEC, m_client_event_queue, and NetworkPacket::readLongString().
void Client::handleCommand_SpawnParticle | ( | NetworkPacket * | pkt | ) |
References CE_SPAWN_PARTICLE, NetworkPacket::getSize(), NetworkPacket::getString(), m_client_event_queue, m_proto_ver, and p().
void Client::handleCommand_SrpBytesSandB | ( | NetworkPacket * | pkt | ) |
References AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_SRP, errorstream, infostream, m_auth_data, m_chosen_auth_mech, Send(), srp_user_process_challenge(), and TOSERVER_SRP_BYTES_M.
void Client::handleCommand_StopSound | ( | NetworkPacket * | pkt | ) |
References m_sound, m_sounds_server_to_client, and ISoundManager::stopSound().
void Client::handleCommand_TimeOfDay | ( | NetworkPacket * | pkt | ) |
References NetworkPacket::getSize(), infostream, m_env, m_last_time_of_day_f, m_time_of_day_set, m_time_of_day_update_timer, Environment::setTimeOfDay(), and Environment::setTimeOfDaySpeed().
void Client::handleCommand_UpdatePlayerList | ( | NetworkPacket * | pkt | ) |
References ClientEnvironment::addPlayerName(), m_env, PLAYER_LIST_ADD, PLAYER_LIST_INIT, PLAYER_LIST_REMOVE, and ClientEnvironment::removePlayerName().
|
inline |
References m_client_event_queue.
|
inline |
|
private |
References actionstream, Database::beginSave(), fs::CreateAllDirs(), g_settings, Settings::getBool(), infostream, fs::IsDir(), m_localdb, set_world_path, and str_replace().
Referenced by connect().
void Client::interact | ( | InteractAction | action, |
const PointedThing & | pointed ) |
References CAMERA_MODE_THIRD_FRONT, errorstream, Camera::getCameraMode(), ClientEnvironment::getClientMap(), ClientEnvironment::getLocalPlayer(), Player::getWieldIndex(), LC_Ready, m_camera, m_env, m_state, NetworkPacket::putLongString(), Send(), PointedThing::serialize(), TOSERVER_INTERACT, and writePlayerPos().
|
overridevirtual |
Reimplemented from InventoryManager.
References InventoryAction::clientApply(), and sendInventoryAction().
bool Client::isShutdown | ( | ) |
References MeshUpdateManager::isRunning(), m_mesh_update_manager, and m_shutdown.
|
inline |
References m_itemdef_received.
|
overridevirtual |
Implements IGameDef.
References ModChannelMgr::channelRegistered(), ModChannelMgr::joinChannel(), m_modchannel_mgr, Send(), and TOSERVER_MODCHANNEL_JOIN.
|
overridevirtual |
Implements IGameDef.
References ModChannelMgr::channelRegistered(), ModChannelMgr::leaveChannel(), m_modchannel_mgr, Send(), and TOSERVER_MODCHANNEL_LEAVE.
bool Client::loadMedia | ( | const std::string & | data, |
const std::string & | filename, | ||
bool | from_media_push = false ) |
References ISoundManager::addSoundToGroup(), errorstream, FATAL_ERROR_IF, g_client_translations, RenderingEngine::get_filesystem(), RenderingEngine::get_video_driver(), IWritableTextureSource::insertSourceImage(), Translations::isTranslationFile(), ISoundManager::loadSoundData(), Translations::loadTranslation(), m_mesh_data, m_rendering_engine, m_sound, m_tsrc, removeStringEnd(), TRACESTREAM, and verbosestream.
Referenced by handleCommand_MediaPush().
|
private |
References ModConfiguration::addModsFromConfig(), BUILTIN_MOD_NAME, ModConfiguration::checkConflictsAndDeps(), checkCSMRestrictionFlag, ScriptApiBase::checkSetByBuiltin(), CSM_RF_LOAD_CLIENT_MODS, DIR_DELIM, errorstream, g_settings, Settings::getBool(), getBuiltinLuaPath(), getClientModsLuaPath(), ClientEnvironment::getLocalPlayer(), ModConfiguration::getMods(), ModConfiguration::getUnsatisfiedModsError(), infostream, ModConfiguration::isConsistent(), LC_Ready, m_camera, m_env, m_minimap, m_mods, m_mods_loaded, m_script, m_state, ClientScripting::on_camera_ready(), ClientScripting::on_client_ready(), ClientScripting::on_minimap_ready(), ScriptApiClient::on_mods_loaded(), porting::path_user, scanModIntoMemory(), ScriptApiBase::setEnv(), ClientEnvironment::setScript(), and warningstream.
Referenced by handleCommand_CSMRestrictionFlags().
void Client::makeScreenshot | ( | ) |
References CHATMESSAGE_TYPE_SYSTEM, fs::CreateDir(), DIR_DELIM, g_settings, Settings::get(), RenderingEngine::get_video_driver(), Settings::getS32(), infostream, fs::IsPathAbsolute(), itos(), m_rendering_engine, mt_localtime(), MYMAX, MYMIN, porting::path_user, fs::PathExists(), pushToChatQueue(), SCREENSHOT_MAX_SERIAL_TRIES, and utf8_to_wide().
Referenced by GUIFormSpecMenu::OnEvent().
|
inline |
References m_media_downloader.
Referenced by afterContentReceived().
float Client::mediaReceiveProgress | ( | ) |
References ClientMediaDownloader::getProgress(), and m_media_downloader.
void Client::migrateModStorage | ( | ) |
References DIR_DELIM, ModStorageDatabaseFiles::getModEntries(), infostream, fs::IsDir(), ModStorageDatabaseFiles::listMods(), m_mod_storage_database, porting::path_user, fs::Rename(), and ModStorageDatabase::setModEntry().
|
inline |
References m_mods_loaded.
Referenced by LocalFormspecHandler::gotText(), handleCommand_ChatMessage(), handleCommand_HP(), and ClientEnvironment::step().
|
inline |
References m_nodedef_received.
|
overrideprivatevirtual |
Implements con::PeerHandler.
References con::IPeer::id, and infostream.
void Client::ProcessData | ( | NetworkPacket * | pkt | ) |
References PacketCounter::add(), g_profiler, NetworkPacket::getCommand(), NetworkPacket::getPeerId(), Profiler::graphAdd(), handleCommand(), infostream, m_packetcounter, m_server_ser_ver, PEER_ID_SERVER, SER_FMT_VER_INVALID, TOCLIENT_NUM_MSG_TYPES, TOCLIENT_STATE_NOT_CONNECTED, and toClientCommandTable.
Referenced by ReceiveAll().
|
inline |
References m_chat_queue.
Referenced by handleCommand_ChatMessage(), handleCommand_DenySudoMode(), and makeScreenshot().
void Client::pushToEventQueue | ( | ClientEvent * | event | ) |
References m_client_event_queue.
|
private |
References NetworkPacket::clear(), FATAL_ERROR_IF, porting::getTimeMs(), infostream, m_con, ProcessData(), con::IConnection::TryReceive(), and BaseException::what().
Referenced by step().
|
inline |
References m_access_denied_reconnect.
void Client::removeNode | ( | v3s16 | p | ) |
References addUpdateMeshTaskWithEdge(), ClientEnvironment::getMap(), m_env, p(), and Map::removeNodeAndUpdate().
Referenced by handleCommand_RemoveNode().
void Client::request_media | ( | const std::vector< std::string > & | file_requests | ) |
References FATAL_ERROR_IF, NetworkPacket::getSize(), infostream, Send(), TOSERVER_REQUEST_MEDIA, and writeU16().
|
inline |
References scanModSubfolder().
Referenced by loadMods().
void Client::scanModSubfolder | ( | const std::string & | mod_name, |
const std::string & | mod_path, | ||
std::string | mod_subpath ) |
References DIR_DELIM, DIR_DELIM_CHAR, fs::GetDirListing(), infostream, m_mod_vfs, fs::ReadFile(), and scanModSubfolder().
Referenced by scanModIntoMemory(), and scanModSubfolder().
void Client::Send | ( | NetworkPacket * | pkt | ) |
References FATAL_ERROR_IF, NetworkPacket::getCommand(), m_con, PEER_ID_SERVER, con::IConnection::Send(), and serverCommandFactoryTable.
Referenced by handleCommand_AuthAccept(), handleCommand_SrpBytesSandB(), interact(), joinModChannel(), leaveModChannel(), request_media(), sendChatMessage(), sendDamage(), sendDeletedBlocks(), sendGotBlocks(), sendHaveMedia(), sendInit(), sendInventoryAction(), sendInventoryFields(), sendModChannelMessage(), sendNodemetaFields(), sendPlayerPos(), sendReady(), sendRemovedSounds(), sendRespawnLegacy(), sendUpdateClientInfo(), setPlayerItem(), and startAuth().
void Client::sendChangePassword | ( | const std::string & | oldpassword, |
const std::string & | newpassword ) |
References choseAuthMech(), ClientEnvironment::getLocalPlayer(), m_env, m_new_password, m_password, m_sudo_auth_methods, and startAuth().
Referenced by GUIPasswordChange::processInput().
void Client::sendChatMessage | ( | const std::wstring & | message | ) |
References canSendChatMessage(), CLIENT_CHAT_MESSAGE_LIMIT_PER_10S, g_settings, Settings::getS16(), infostream, m_chat_message_allowance, m_last_chat_message_sent, m_out_chat_queue, Send(), and TOSERVER_CHAT_MESSAGE.
Referenced by step(), and typeChatMessage().
void Client::sendDamage | ( | u16 | damage | ) |
References Send(), and TOSERVER_DAMAGE.
Referenced by step().
|
private |
References Send(), and TOSERVER_DELETEDBLOCKS.
Referenced by step().
|
private |
References Send(), and TOSERVER_GOTBLOCKS.
Referenced by step().
void Client::sendHaveMedia | ( | const std::vector< u32 > & | tokens | ) |
References sanity_check, Send(), and TOSERVER_HAVE_MEDIA.
Referenced by step().
|
private |
References CLIENT_PROTOCOL_VERSION_MIN, LATEST_PROTOCOL_VERSION, Send(), SER_FMT_VER_HIGHEST_READ, and TOSERVER_INIT.
Referenced by step().
void Client::sendInventoryAction | ( | InventoryAction * | a | ) |
References NetworkPacket::putRawString(), Send(), InventoryAction::serialize(), and TOSERVER_INVENTORY_ACTION.
Referenced by inventoryAction().
void Client::sendInventoryFields | ( | const std::string & | formname, |
const StringMap & | fields ) |
References FATAL_ERROR_IF, NetworkPacket::putLongString(), Send(), and TOSERVER_INVENTORY_FIELDS.
Referenced by TextDestPlayerInventory::gotText().
|
overridevirtual |
Implements IGameDef.
References ModChannelMgr::canWriteOnChannel(), m_modchannel_mgr, Send(), STRING_MAX_LEN, TOSERVER_MODCHANNEL_MSG, and warningstream.
References FATAL_ERROR_IF, p(), NetworkPacket::putLongString(), Send(), and TOSERVER_NODEMETA_FIELDS.
Referenced by TextDestNodeMetadata::gotText(), and TextDestNodeMetadata::gotText().
|
private |
References CAMERA_MODE_THIRD_FRONT, Player::control, ClientMap::getCameraFov(), Camera::getCameraMode(), ClientEnvironment::getClientMap(), PlayerControl::getKeysPressed(), ClientEnvironment::getLocalPlayer(), LocalPlayer::getPitch(), LocalPlayer::getPosition(), Player::getSpeed(), ClientMap::getWantedRange(), LocalPlayer::getYaw(), LocalPlayer::isDead(), LocalPlayer::last_camera_fov, LocalPlayer::last_camera_inverted, LocalPlayer::last_keyPressed, LocalPlayer::last_movement_dir, LocalPlayer::last_movement_speed, LocalPlayer::last_pitch, LocalPlayer::last_position, LocalPlayer::last_speed, LocalPlayer::last_wanted_range, LocalPlayer::last_yaw, m_activeobjects_received, m_camera, m_env, MAP_BLOCKSIZE, PlayerControl::movement_direction, PlayerControl::movement_speed, Send(), TOSERVER_PLAYERPOS, and writePlayerPos().
Referenced by step().
void Client::sendReady | ( | ) |
References FORMSPEC_API_VERSION, g_version_hash, NetworkPacket::putRawString(), Send(), and TOSERVER_CLIENT_READY.
Referenced by afterContentReceived().
|
private |
References Send(), and TOSERVER_REMOVED_SOUNDS.
Referenced by handleCommand_PlaySound(), and step().
void Client::sendRespawnLegacy | ( | ) |
References Send(), and TOSERVER_RESPAWN_LEGACY.
Referenced by LocalFormspecHandler::gotText().
void Client::sendUpdateClientInfo | ( | const ClientDynamicInfo & | info | ) |
References ClientDynamicInfo::max_fs_size, ClientDynamicInfo::real_gui_scaling, ClientDynamicInfo::real_hud_scaling, ClientDynamicInfo::render_target_size, Send(), TOSERVER_UPDATE_CLIENT_INFO, and ClientDynamicInfo::touch_controls.
void Client::setCrack | ( | int | level, |
v3s16 | pos ) |
References addUpdateMeshTaskForNode(), m_crack_level, and m_crack_pos.
|
inline |
|
inline |
References m_access_denied, and m_access_denied_reason.
Referenced by setFatalError().
void Client::setPlayerControl | ( | PlayerControl & | control | ) |
References Player::control, ClientEnvironment::getLocalPlayer(), and m_env.
void Client::setPlayerItem | ( | u16 | item | ) |
References ClientEnvironment::getLocalPlayer(), m_env, m_update_wielded_item, Send(), Player::setWieldIndex(), and TOSERVER_PLAYERITEM.
void Client::showUpdateProgressTexture | ( | void * | args, |
u32 | progress, | ||
u32 | max_progress ) |
References RenderingEngine::draw_load_screen(), porting::getTimeMs(), TextureUpdateArgs::guienv, TextureUpdateArgs::last_percent, TextureUpdateArgs::last_time_ms, m_rendering_engine, TextureUpdateArgs::text_base, and TextureUpdateArgs::tsrc.
|
inline |
References getSoundManager().
Referenced by GenericCAO::step().
|
private |
References AUTH_MECHANISM_FIRST_SRP, AUTH_MECHANISM_LEGACY_PASSWORD, AUTH_MECHANISM_NONE, AUTH_MECHANISM_SRP, FATAL_ERROR_IF, generate_srp_verifier_and_salt(), ClientEnvironment::getLocalPlayer(), Player::getName(), lowercase(), m_auth_data, m_chosen_auth_mech, m_env, m_password, Send(), SRP_NG_2048, SRP_OK, SRP_SHA256, srp_user_new(), srp_user_start_authentication(), TOSERVER_FIRST_SRP, TOSERVER_SRP_BYTES_A, and translate_password().
Referenced by handleCommand_AcceptSudoMode(), handleCommand_Hello(), and sendChangePassword().
void Client::step | ( | float | dtime | ) |
References MeshUpdateResult::ack_list, Minimap::addBlock(), ClientEnvEvent::amount, Database::beginSave(), BS, canSendChatMessage(), CE_PLAYER_DAMAGE, CEE_PLAYER_DAMAGE, MeshGrid::cell_size, PacketCounter::clear(), MapSector::createBlankBlock(), DTIME_LIMIT, Map::emergeSector(), Database::endSave(), FATAL_ERROR_IF, ISoundManager::freeId(), g_profiler, g_settings, RenderingEngine::get_shadow_renderer(), ClientEnvironment::getActiveObject(), MapSector::getBlockNoCreateNoEx(), ClientEnvironment::getClientEnvEvent(), Settings::getFloat(), ClientEnvironment::getLocalPlayer(), ClientEnvironment::getMap(), MapBlockMesh::getMesh(), Player::getName(), MeshUpdateManager::getNextResult(), MeshGrid::getOffsetIndex(), ClientActiveObject::getPosition(), getRTT(), Settings::getS32(), ClientActiveObject::getVelocity(), Profiler::graphAdd(), ClientEnvironment::hasClientEnvEvents(), infostream, inhibit_inventory_revert, Player::inventory, ClientMediaDownloader::isDone(), ClientMediaDownloader::isStarted(), LC_Created, LC_Ready, m_animation_time, m_avg_rtt_timer, m_cache_save_interval, m_client_event_queue, m_connection_reinit_timer, m_env, m_inventory_from_server, m_inventory_from_server_age, m_localdb, m_localdb_save_interval, m_map_timer_and_unload_interval, m_media_downloader, m_mesh_grid, m_mesh_update_manager, m_minimap, m_mod_storage_database, m_mod_storage_save_timer, m_out_chat_queue, m_packetcounter, m_packetcounter_timer, m_pending_media_downloads, m_playerpos_send_timer, m_recommended_send_interval, m_removed_sounds_check_timer, m_sound, m_sounds_client_to_server, m_sounds_server_to_client, m_sounds_to_objects, m_state, m_time_of_day_update_timer, m_update_wielded_item, MeshUpdateResult::map_blocks, MAX_TILE_LAYERS, MeshUpdateResult::mesh, MapBlockMesh::moveMinimapMapblocks(), MeshUpdateResult::p, p(), ClientEnvEvent::player_damage, ISoundManager::pollRemovedSounds(), PacketCounter::print(), ReceiveAll(), MapBlock::refDrop(), ClientEnvEvent::send_to_server, sendChatMessage(), sendDamage(), sendDeletedBlocks(), sendGotBlocks(), sendHaveMedia(), sendInit(), sendPlayerPos(), sendRemovedSounds(), MeshUpdateResult::solid_sides, ClientEnvironment::step(), ClientMediaDownloader::step(), IntervalLimiter::step(), ISoundManager::step(), PacketCounter::sum(), Map::timerUpdate(), ClientEnvEvent::type, ISoundManager::updateSoundPosVel(), and MeshUpdateResult::urgent.
Referenced by handleCommand_FadeSound().
void Client::Stop | ( | ) |
References Database::endSave(), infostream, m_localdb, m_mesh_update_manager, m_mods_loaded, m_script, m_shutdown, ScriptApiClient::on_shutdown(), and MeshUpdateManager::stop().
|
inline |
References getTextureSource().
Referenced by SmokePuffCSO::SmokePuffCSO(), GenericCAO::step(), and GenericCAO::updateTextures().
void Client::typeChatMessage | ( | const std::wstring & | message | ) |
References infostream, m_mods_loaded, m_script, ScriptApiClient::on_sending_message(), sendChatMessage(), and wide_to_utf8().
Referenced by GUIChatConsole::OnEvent().
void Client::updateCameraOffset | ( | v3s16 | camera_offset | ) |
References MeshUpdateManager::m_camera_offset, and m_mesh_update_manager.
bool Client::updateWieldedItem | ( | ) |
References Inventory::getList(), ClientEnvironment::getLocalPlayer(), Player::inventory, m_env, and m_update_wielded_item.
bool Client::inhibit_inventory_revert = false |
Referenced by GUIFormSpecMenu::OnEvent(), and step().
|
private |
Referenced by accessDenied(), connect(), deletingPeer(), handleCommand_AccessDenied(), handleCommand_Hello(), and setFatalError().
|
private |
Referenced by accessDeniedReason(), connect(), deletingPeer(), handleCommand_AccessDenied(), handleCommand_Hello(), and setFatalError().
|
private |
Referenced by connect(), handleCommand_AccessDenied(), and reconnectRequested().
|
private |
Referenced by activeObjectsReceived(), handleCommand_ActiveObjectRemoveAdd(), and sendPlayerPos().
|
private |
Referenced by connect(), and getAddressName().
|
private |
Referenced by handleCommand_Hello().
|
private |
Referenced by getAnimationTime(), and step().
|
private |
Referenced by deleteAuthData(), handleCommand_Hello(), handleCommand_SrpBytesSandB(), and startAuth().
|
private |
Referenced by step().
|
private |
Referenced by getCamera(), handleCommand_Fov(), interact(), loadMods(), sendPlayerPos(), and setCamera().
|
private |
Referenced by canSendChatMessage(), and sendChatMessage().
|
private |
Referenced by getChatMessage(), and pushToChatQueue().
|
private |
Referenced by deleteAuthData(), handleCommand_AcceptSudoMode(), handleCommand_Hello(), handleCommand_SrpBytesSandB(), and startAuth().
|
private |
Referenced by getClientEvent(), handleCommand_AddParticleSpawner(), handleCommand_CloudParams(), handleCommand_DeathScreenLegacy(), handleCommand_DeleteParticleSpawner(), handleCommand_HP(), handleCommand_HudAdd(), handleCommand_HudChange(), handleCommand_HudRemove(), handleCommand_HudSetMoon(), handleCommand_HudSetSky(), handleCommand_HudSetStars(), handleCommand_HudSetSun(), handleCommand_MovePlayer(), handleCommand_OverrideDayNightRatio(), handleCommand_ShowFormSpec(), handleCommand_SpawnParticle(), hasClientEvents(), pushToEventQueue(), and step().
|
private |
Referenced by ~Client(), connect(), getCurRate(), getRTT(), getServerAddress(), handleCommand_Hello(), ReceiveAll(), and Send().
|
private |
Referenced by step().
|
private |
Referenced by getCrackLevel(), and setCrack().
|
private |
Referenced by getCrackPos(), and setCrack().
|
private |
Referenced by checkCSMRestrictionFlag(), getCSMRestrictionFlags(), and handleCommand_CSMRestrictionFlags().
|
private |
Referenced by CSMClampPos(), CSMClampRadius(), CSMGetNode(), and handleCommand_CSMRestrictionFlags().
|
private |
Referenced by ~Client(), getInventory(), and handleCommand_DetachedInventory().
|
private |
Referenced by Client(), addNode(), addUpdateMeshTask(), addUpdateMeshTaskForNode(), addUpdateMeshTaskWithEdge(), afterContentReceived(), CSMClampPos(), CSMClampRadius(), CSMGetNode(), getConnectedPlayerNames(), getEnv(), getFormspecPrepend(), getHP(), getInventory(), handleCommand_ActiveObjectMessages(), handleCommand_ActiveObjectRemoveAdd(), handleCommand_AuthAccept(), handleCommand_BlockData(), handleCommand_Breath(), handleCommand_EyeOffset(), handleCommand_FormspecPrepend(), handleCommand_Fov(), handleCommand_HP(), handleCommand_HudSetFlags(), handleCommand_HudSetParam(), handleCommand_Inventory(), handleCommand_InventoryFormSpec(), handleCommand_LocalPlayerAnimations(), handleCommand_Movement(), handleCommand_MovePlayer(), handleCommand_MovePlayerRel(), handleCommand_NodemetaChanged(), handleCommand_PlayerSpeed(), handleCommand_PlaySound(), handleCommand_SetLighting(), handleCommand_TimeOfDay(), handleCommand_UpdatePlayerList(), interact(), loadMods(), removeNode(), sendChangePassword(), sendPlayerPos(), setPlayerControl(), setPlayerItem(), startAuth(), step(), and updateWieldedItem().
|
private |
Referenced by getEventManager().
|
private |
|
private |
Referenced by ~Client(), handleCommand_Inventory(), and step().
|
private |
Referenced by handleCommand_Inventory(), and step().
|
private |
|
private |
Referenced by afterContentReceived(), handleCommand_ItemDef(), and itemdefReceived().
|
private |
Referenced by canSendChatMessage(), and sendChatMessage().
|
private |
Referenced by handleCommand_TimeOfDay().
|
private |
Referenced by handleCommand_BlockData(), initLocalMapSaving(), step(), and Stop().
|
private |
Referenced by step().
|
private |
Referenced by getMapSeed(), and handleCommand_AuthAccept().
|
private |
Referenced by step().
|
private |
Referenced by ~Client(), handleCommand_AnnounceMedia(), handleCommand_Media(), mediaReceived(), mediaReceiveProgress(), and step().
|
private |
Referenced by getMesh(), and loadMedia().
|
private |
Referenced by Client(), getMeshGrid(), and step().
|
private |
|
private |
Referenced by Client(), ~Client(), getMinimap(), handleCommand_HudSetFlags(), handleCommand_MinimapModes(), loadMods(), and step().
|
private |
Referenced by Client(), ~Client(), getModStorageDatabase(), migrateModStorage(), and step().
|
private |
Referenced by step().
|
private |
Referenced by getModFile(), and scanModSubfolder().
|
private |
|
private |
Referenced by loadMods().
|
private |
Referenced by afterContentReceived(), loadMods(), modsLoaded(), Stop(), and typeChatMessage().
|
private |
Referenced by handleCommand_AcceptSudoMode(), and sendChangePassword().
|
private |
Referenced by afterContentReceived(), getNodeDefManager(), and handleCommand_NodeDef().
|
private |
Referenced by afterContentReceived(), handleCommand_NodeDef(), and nodedefReceived().
|
private |
Referenced by clearOutChatQueue(), sendChatMessage(), and step().
|
private |
Referenced by ProcessData(), and step().
|
private |
Referenced by step().
|
private |
Referenced by getParticleManager().
|
private |
Referenced by handleCommand_AcceptSudoMode(), sendChangePassword(), and startAuth().
|
private |
Referenced by handleCommand_Media(), handleCommand_MediaPush(), and step().
|
private |
|
private |
Referenced by step().
|
private |
Referenced by checkPrivilege(), getPrivilegeList(), and handleCommand_Privileges().
|
private |
|
private |
Referenced by handleCommand_AuthAccept(), and step().
|
private |
Referenced by handleCommand_AnnounceMedia(), and handleCommand_MediaPush().
|
private |
Referenced by step().
|
private |
Referenced by ~Client(), afterContentReceived(), drawLoadScreen(), getMesh(), getSceneManager(), loadMedia(), makeScreenshot(), and showUpdateProgressTexture().
|
private |
|
private |
Referenced by handleCommand_AddNode(), handleCommand_BlockData(), handleCommand_Hello(), and ProcessData().
|
private |
Referenced by afterContentReceived(), and getShaderSource().
|
private |
Referenced by ~Client(), isShutdown(), and Stop().
bool Client::m_simple_singleplayer_mode |
|
private |
Referenced by ~Client(), getSoundManager(), handleCommand_FadeSound(), handleCommand_PlaySound(), handleCommand_StopSound(), loadMedia(), and step().
|
private |
Referenced by ~Client(), handleCommand_PlaySound(), and step().
|
private |
Referenced by handleCommand_FadeSound(), handleCommand_PlaySound(), handleCommand_StopSound(), and step().
|
private |
Referenced by handleCommand_PlaySound(), and step().
|
private |
Referenced by afterContentReceived(), connect(), getState(), handleCommand_AuthAccept(), interact(), loadMods(), and step().
|
private |
Referenced by handleCommand_AuthAccept(), and sendChangePassword().
|
private |
Referenced by handleCommand_TimeOfDay().
|
private |
Referenced by handleCommand_TimeOfDay(), and step().
|
private |
Referenced by afterContentReceived(), drawLoadScreen(), getTextureSource(), and loadMedia().
|
private |
Referenced by handleCommand_Inventory(), setPlayerItem(), step(), and updateWieldedItem().