#include <localplayer.h>
Public Member Functions | |
void | readGlobalSettings () |
void | registerSettingsCallback () |
void | deregisterSettingsCallback () |
Public Attributes | |
bool | free_move = false |
bool | pitch_move = false |
bool | fast_move = false |
bool | continuous_forward = false |
bool | always_fly_fast = false |
bool | aux1_descends = false |
bool | noclip = false |
bool | autojump = false |
Static Private Member Functions | |
static void | settingsChangedCallback (const std::string &name, void *data) |
void PlayerSettings::deregisterSettingsCallback | ( | ) |
References Settings::deregisterAllChangedCallbacks(), and g_settings.
Referenced by LocalPlayer::~LocalPlayer().
void PlayerSettings::readGlobalSettings | ( | ) |
References always_fly_fast, autojump, aux1_descends, continuous_forward, fast_move, free_move, g_settings, Settings::getBool(), noclip, and pitch_move.
Referenced by LocalPlayer::LocalPlayer().
void PlayerSettings::registerSettingsCallback | ( | ) |
References g_settings, PlayerSettings_names, Settings::registerChangedCallback(), and settingsChangedCallback().
Referenced by LocalPlayer::LocalPlayer().
|
staticprivate |
bool PlayerSettings::always_fly_fast = false |
Referenced by LocalPlayer::applyControl(), and readGlobalSettings().
bool PlayerSettings::autojump = false |
Referenced by LocalPlayer::handleAutojump(), and readGlobalSettings().
bool PlayerSettings::aux1_descends = false |
Referenced by LocalPlayer::applyControl(), and readGlobalSettings().
bool PlayerSettings::continuous_forward = false |
Referenced by readGlobalSettings(), and Game::updatePlayerControl().
bool PlayerSettings::fast_move = false |
Referenced by LocalPlayer::applyControl(), and readGlobalSettings().
bool PlayerSettings::free_move = false |
Referenced by LocalPlayer::applyControl(), LocalPlayer::move(), LocalPlayer::old_move(), and readGlobalSettings().
bool PlayerSettings::noclip = false |
Referenced by LocalPlayer::move(), LocalPlayer::old_move(), and readGlobalSettings().
bool PlayerSettings::pitch_move = false |
Referenced by LocalPlayer::applyControl(), and readGlobalSettings().