#include <remoteplayer.h>
◆ RemotePlayer()
RemotePlayer::RemotePlayer |
( |
const std::string & | name, |
|
|
IItemDefManager * | idef ) |
References BS, g_settings, SkyboxDefaults::getCloudDefaults(), Settings::getFloat(), SkyboxDefaults::getMoonDefaults(), SkyboxDefaults::getSkyDefaults(), SkyboxDefaults::getStarDefaults(), SkyboxDefaults::getSunDefaults(), Settings::getU16(), m_cloud_params, m_moon_params, m_setting_cache_loaded, m_setting_chat_message_limit_per_10sec, m_setting_chat_message_limit_trigger_kick, m_skybox_params, m_star_params, m_sun_params, 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.
◆ ~RemotePlayer()
RemotePlayer::~RemotePlayer |
( |
| ) |
|
|
virtual |
◆ canSendChatMessage()
◆ checkModified()
bool RemotePlayer::checkModified |
( |
| ) |
const |
|
inline |
◆ getCloudParams()
const CloudParams & RemotePlayer::getCloudParams |
( |
| ) |
const |
|
inline |
◆ getDayNightRatio()
void RemotePlayer::getDayNightRatio |
( |
bool * | do_override, |
|
|
float * | ratio ) |
|
inline |
◆ getHotbarImage()
const std::string & RemotePlayer::getHotbarImage |
( |
| ) |
const |
|
inline |
◆ getHotbarItemcount()
s32 RemotePlayer::getHotbarItemcount |
( |
| ) |
const |
|
inline |
◆ getHotbarSelectedImage()
const std::string & RemotePlayer::getHotbarSelectedImage |
( |
| ) |
const |
|
inline |
◆ getLighting()
const Lighting & RemotePlayer::getLighting |
( |
| ) |
const |
|
inline |
◆ getLocalAnimations()
void RemotePlayer::getLocalAnimations |
( |
v2f * | frames, |
|
|
float * | frame_speed ) |
|
inline |
◆ getMoonParams()
const MoonParams & RemotePlayer::getMoonParams |
( |
| ) |
const |
|
inline |
◆ getPeerId()
returns PEER_ID_INEXISTENT when PlayerSAO is not ready
References m_peer_id.
Referenced by Server::addParticleSpawner(), ServerEnvironment::addPlayer(), Server::deleteParticleSpawner(), PlayerSAO::getPeerID(), Server::handleChat(), Server::handleCommand_Init(), Server::hudAdd(), Server::hudChange(), Server::hudRemove(), Server::hudSetFlags(), Server::hudSetHotbarImage(), Server::hudSetHotbarItemcount(), Server::hudSetHotbarSelectedImage(), ModApiServer::l_ban_player(), ModApiServer::l_disconnect_player(), ModApiServer::l_get_player_information(), ModApiServer::l_get_player_ip(), ModApiServer::l_get_player_window_information(), ObjectRef::l_send_mapblock(), ObjectRef::l_set_fov(), ObjectRef::l_set_minimap_modes(), Server::notifyPlayer(), Server::overrideDayNightRatio(), Server::playSound(), ServerInventoryManager::removeDetachedInventory(), Server::reportFormspecPrependModified(), Server::reportInventoryFormspecModified(), Server::reportPrivsModified(), Server::SendInventory(), Server::setClouds(), Server::setLighting(), Server::setLocalPlayerAnimations(), Server::setMoon(), Server::setPlayerEyeOffset(), Server::setSky(), Server::setStars(), Server::setSun(), Server::showFormspec(), Server::spawnParticle(), and Server::StageTwoClientInit().
◆ getPlayerSAO()
References m_sao.
Referenced by Server::checkInteractDistance(), Server::DeleteClient(), ServerInventoryManager::getInventory(), PlayerMetaRef::getmeta(), RemoteClient::GetNextBlocks(), Server::getPlayerSAO(), Server::handleCommand_Damage(), Server::handleCommand_Interact(), Server::handleCommand_InventoryAction(), Server::handleCommand_InventoryFields(), Server::handleCommand_NodeMetaFields(), Server::handleCommand_PlayerItem(), Server::handleCommand_PlayerPos(), Server::hudSetFlags(), ModApiEnv::l_get_player_by_name(), Server::playSound(), PlayerSAO::punch(), PlayerSAO::removingFromEnvironment(), Server::reportPrivsModified(), PlayerDatabaseLevelDB::savePlayer(), PlayerDatabaseSQLite3::savePlayer(), Server::SendAddParticleSpawner(), Server::sendNodeChangePkt(), Server::SendSpawnParticle(), PlayerSAO::unlinkPlayerSessionAndSave(), and Server::UpdateCrafting().
◆ getSkyParams()
◆ getStarParams()
const StarParams & RemotePlayer::getStarParams |
( |
| ) |
const |
|
inline |
◆ getSunParams()
const SunParams & RemotePlayer::getSunParams |
( |
| ) |
const |
|
inline |
◆ onSuccessfulSave()
void RemotePlayer::onSuccessfulSave |
( |
| ) |
|
◆ overrideDayNightRatio()
void RemotePlayer::overrideDayNightRatio |
( |
bool | do_override, |
|
|
float | ratio ) |
|
inline |
◆ setCloudParams()
void RemotePlayer::setCloudParams |
( |
const CloudParams & | cloud_params | ) |
|
|
inline |
◆ setDirty()
void RemotePlayer::setDirty |
( |
bool | dirty | ) |
|
|
inline |
◆ setHotbarImage()
void RemotePlayer::setHotbarImage |
( |
const std::string & | name | ) |
|
|
inline |
◆ setHotbarItemcount()
void RemotePlayer::setHotbarItemcount |
( |
s32 | hotbar_itemcount | ) |
|
|
inline |
◆ setHotbarSelectedImage()
void RemotePlayer::setHotbarSelectedImage |
( |
const std::string & | name | ) |
|
|
inline |
◆ setLighting()
void RemotePlayer::setLighting |
( |
const Lighting & | lighting | ) |
|
|
inline |
◆ setLocalAnimations()
void RemotePlayer::setLocalAnimations |
( |
v2f | frames[4], |
|
|
float | frame_speed ) |
|
inline |
◆ setModified()
void RemotePlayer::setModified |
( |
const bool | x | ) |
|
|
inline |
◆ setMoon()
void RemotePlayer::setMoon |
( |
const MoonParams & | moon_params | ) |
|
|
inline |
◆ setPeerId()
void RemotePlayer::setPeerId |
( |
session_t | peer_id | ) |
|
|
inline |
◆ setPlayerSAO()
void RemotePlayer::setPlayerSAO |
( |
PlayerSAO * | sao | ) |
|
|
inline |
◆ setSky()
void RemotePlayer::setSky |
( |
const SkyboxParams & | skybox_params | ) |
|
|
inline |
◆ setStars()
void RemotePlayer::setStars |
( |
const StarParams & | star_params | ) |
|
|
inline |
◆ setSun()
void RemotePlayer::setSun |
( |
const SunParams & | sun_params | ) |
|
|
inline |
◆ PlayerDatabaseFiles
◆ formspec_version
u16 RemotePlayer::formspec_version = 0 |
◆ hud_hotbar_image
std::string RemotePlayer::hud_hotbar_image = "" |
|
private |
◆ hud_hotbar_selected_image
std::string RemotePlayer::hud_hotbar_selected_image = "" |
|
private |
◆ m_chat_message_allowance
float RemotePlayer::m_chat_message_allowance = 5.0f |
|
private |
◆ m_cloud_params
◆ m_day_night_ratio
float RemotePlayer::m_day_night_ratio |
|
private |
◆ m_day_night_ratio_do_override
bool RemotePlayer::m_day_night_ratio_do_override = false |
|
private |
◆ m_dirty
bool RemotePlayer::m_dirty = false |
|
private |
◆ m_last_chat_message_sent
u32 RemotePlayer::m_last_chat_message_sent = std::time(0) |
|
private |
◆ m_lighting
◆ m_message_rate_overhead
u16 RemotePlayer::m_message_rate_overhead = 0 |
|
private |
◆ m_moon_params
◆ m_peer_id
◆ m_sao
◆ m_setting_cache_loaded
bool RemotePlayer::m_setting_cache_loaded = false |
|
staticprivate |
◆ m_setting_chat_message_limit_per_10sec
float RemotePlayer::m_setting_chat_message_limit_per_10sec = 0.0f |
|
staticprivate |
◆ m_setting_chat_message_limit_trigger_kick
u16 RemotePlayer::m_setting_chat_message_limit_trigger_kick = 0 |
|
staticprivate |
◆ m_skybox_params
◆ m_star_params
◆ m_sun_params
◆ protocol_version
u16 RemotePlayer::protocol_version = 0 |
The documentation for this class was generated from the following files: