#include <player.h>
◆ Player()
References Inventory::addList(), BS, Inventory::clear(), HUD_FLAG_BASIC_DEBUG, HUD_FLAG_BREATHBAR_VISIBLE, HUD_FLAG_CHAT_VISIBLE, HUD_FLAG_CROSSHAIR_VISIBLE, HUD_FLAG_HEALTHBAR_VISIBLE, HUD_FLAG_HOTBAR_VISIBLE, HUD_FLAG_MINIMAP_RADAR_VISIBLE, HUD_FLAG_MINIMAP_VISIBLE, HUD_FLAG_WIELDITEM_VISIBLE, hud_flags, hud_hotbar_itemcount, HUD_HOTBAR_ITEMCOUNT_DEFAULT, inventory, inventory_formspec, local_animation_speed, m_name, movement_acceleration_air, movement_acceleration_default, movement_acceleration_fast, movement_gravity, movement_liquid_fluidity, movement_liquid_fluidity_smooth, movement_liquid_sink, movement_speed_climb, movement_speed_crouch, movement_speed_fast, movement_speed_jump, movement_speed_walk, PLAYER_INVENTORY_SIZE, Inventory::setModified(), and InventoryList::setWidth().
◆ ~Player()
◆ addHud()
◆ clearHud()
void Player::clearHud |
( |
| ) |
|
◆ DISABLE_CLASS_COPY()
Player::DISABLE_CLASS_COPY |
( |
Player | | ) |
|
◆ getFov()
◆ getFreeHudID()
u32 Player::getFreeHudID |
( |
| ) |
|
|
inline |
◆ getHud()
◆ getMaxHotbarItemcount()
u16 Player::getMaxHotbarItemcount |
( |
| ) |
|
◆ getName()
const std::string & Player::getName |
( |
| ) |
const |
|
inline |
References m_name.
Referenced by ServerEnvironment::addPlayer(), Server::checkInteractDistance(), PlayerSAO::checkMovementCheat(), Server::DeleteClient(), Server::emergePlayer(), ServerEnvironment::getAddedActiveObjects(), PlayerSAO::getClientInitializationData(), PlayerSAO::getDescription(), Client::getInventory(), PlayerSAO::getInventoryLocation(), Server::getPlayerName(), ServerEnvironment::getRemovedActiveObjects(), Server::handleCommand_ChatMessage(), Server::handleCommand_ClientReady(), Server::handleCommand_Damage(), Server::handleCommand_Interact(), Server::handleCommand_InventoryAction(), Server::handleCommand_InventoryFields(), Server::handleCommand_NodeMetaFields(), Server::handleCommand_PlayerItem(), Server::handleCommand_PlayerPos(), Server::HandlePlayerDeath(), ObjectRef::l_get_meta(), LuaLocalPlayer::l_get_name(), ObjectRef::l_get_player_name(), ObjectRef::l_set_formspec_prepend(), ObjectRef::l_set_inventory_formspec(), ObjectRef::l_set_observers(), PlayerDatabaseFiles::listPlayers(), Database_Dummy::loadPlayer(), PlayerDatabaseFiles::loadPlayer(), PlayerDatabaseLevelDB::loadPlayer(), PlayerDatabaseSQLite3::loadPlayer(), ServerEnvironment::loadPlayer(), Server::playSound(), GenericCAO::processInitData(), PlayerDatabaseFiles::removePlayer(), Server::reportPrivsModified(), PlayerSAO::respawn(), Database_Dummy::savePlayer(), PlayerDatabaseFiles::savePlayer(), PlayerDatabaseLevelDB::savePlayer(), PlayerDatabaseSQLite3::savePlayer(), ServerEnvironment::savePlayer(), Server::SendPlayerPrivileges(), Server::StageTwoClientInit(), Client::startAuth(), Client::step(), Server::UpdateCrafting(), and ClientInterface::UpdatePlayerList().
◆ getPlayerControl()
◆ getSpeed()
v3f Player::getSpeed |
( |
| ) |
const |
|
inline |
References m_speed.
Referenced by LocalPlayer::applyControl(), RemoteClient::GetNextBlocks(), LuaLocalPlayer::l_get_velocity(), ObjectRef::l_get_velocity(), LocalPlayer::move(), LocalPlayer::old_move(), Client::sendPlayerPos(), ClientEnvironment::step(), Camera::update(), Game::updateSound(), and writePlayerPos().
◆ getWieldedItem()
References InventoryList::getItem(), Inventory::getList(), inventory, m_wield_index, and ItemStack::name.
Referenced by Server::checkInteractDistance(), PlayerSAO::getWieldedItem(), Server::handleCommand_Interact(), LuaLocalPlayer::l_get_wielded_item(), Game::processPlayerInteraction(), Game::updateCamera(), and Game::updateFrame().
◆ getWieldIndex()
u16 Player::getWieldIndex |
( |
| ) |
|
◆ hudApply()
void Player::hudApply |
( |
std::function< void(const std::vector< HudElement * > &)> | f | ) |
|
◆ removeHud()
◆ setFov()
◆ setSpeed()
void Player::setSpeed |
( |
v3f | speed | ) |
|
|
inline |
◆ setWieldIndex()
void Player::setWieldIndex |
( |
u16 | index | ) |
|
◆ control
◆ eye_offset_first
v3f Player::eye_offset_first |
◆ eye_offset_third
v3f Player::eye_offset_third |
◆ eye_offset_third_front
v3f Player::eye_offset_third_front |
◆ formspec_prepend
std::string Player::formspec_prepend |
◆ hud
◆ hud_flags
Referenced by Player(), Hud::drawLuaElements(), Game::drawScene(), Client::handleCommand_HudSetFlags(), Server::hudSetFlags(), ObjectRef::l_hud_get_flags(), Game::processPlayerInteraction(), Game::toggleBlockBounds(), Game::toggleDebug(), GameUI::update(), and Game::updateDebugState().
◆ hud_hotbar_itemcount
s32 Player::hud_hotbar_itemcount |
◆ inventory
Referenced by Player(), RemotePlayer::checkModified(), Game::createClient(), Client::getInventory(), PlayerSAO::getInventory(), getMaxHotbarItemcount(), getWieldedItem(), Client::handleCommand_Inventory(), PlayerDatabaseLevelDB::loadPlayer(), PlayerDatabaseSQLite3::loadPlayer(), PlayerDatabaseLevelDB::savePlayer(), Server::SendInventory(), ServerInventoryManager::setInventoryModified(), PlayerSAO::setWieldedItem(), setWieldIndex(), Client::step(), Server::UpdateCrafting(), and Client::updateWieldedItem().
◆ inventory_formspec
std::string Player::inventory_formspec |
◆ local_animation_speed
float Player::local_animation_speed |
◆ local_animations
v2f Player::local_animations[4] |
◆ m_fov_override_spec
PlayerFovSpec Player::m_fov_override_spec = { 0.0f, false, 0.0f } |
|
protected |
◆ m_mutex
std::mutex Player::m_mutex |
|
private |
◆ m_name
std::string Player::m_name |
|
protected |
◆ m_speed
◆ m_wield_index
u16 Player::m_wield_index = 0 |
|
protected |
◆ movement_acceleration_air
f32 Player::movement_acceleration_air |
◆ movement_acceleration_default
f32 Player::movement_acceleration_default |
◆ movement_acceleration_fast
f32 Player::movement_acceleration_fast |
◆ movement_gravity
f32 Player::movement_gravity |
◆ movement_liquid_fluidity
f32 Player::movement_liquid_fluidity |
◆ movement_liquid_fluidity_smooth
f32 Player::movement_liquid_fluidity_smooth |
◆ movement_liquid_sink
f32 Player::movement_liquid_sink |
◆ movement_speed_climb
f32 Player::movement_speed_climb |
◆ movement_speed_crouch
f32 Player::movement_speed_crouch |
◆ movement_speed_fast
f32 Player::movement_speed_fast |
◆ movement_speed_jump
f32 Player::movement_speed_jump |
◆ movement_speed_walk
f32 Player::movement_speed_walk |
◆ physics_override
Referenced by ParticleManager::addNodeParticle(), LocalPlayer::applyControl(), PlayerSAO::checkMovementCheat(), PlayerSAO::generateUpdatePhysicsOverrideCommand(), LocalPlayer::handleAutojump(), LuaLocalPlayer::l_get_physics_override(), ObjectRef::l_get_physics_override(), ObjectRef::l_set_physics_override(), LocalPlayer::move(), LocalPlayer::old_move(), GenericCAO::processMessage(), ClientEnvironment::step(), and LocalPlayer::updateSneakNode().
The documentation for this class was generated from the following files: