#include <player.h>
Public Member Functions | |
| PlayerControl ()=default | |
| PlayerControl (bool a_up, bool a_down, bool a_left, bool a_right, bool a_jump, bool a_aux1, bool a_sneak, bool a_zoom, bool a_dig, bool a_place, float a_pitch, float a_yaw, float a_movement_speed, float a_movement_direction) | |
| void | setMovementFromKeys () |
| u32 | getKeysPressed () const |
| bool | isMoving () const |
| void | unpackKeysPressed (u32 keypress_bits) |
| v2f | getMovement () const |
Public Attributes | |
| u8 | direction_keys = 0 |
| bool | jump = false |
| bool | aux1 = false |
| bool | sneak = false |
| bool | zoom = false |
| bool | dig = false |
| bool | place = false |
| float | pitch = 0.0f |
| float | yaw = 0.0f |
| float | movement_speed = 0.0f |
| float | movement_direction = 0.0f |
|
default |
|
inline |
References aux1, dig, direction_keys, jump, movement_direction, movement_speed, pitch, place, sneak, yaw, and zoom.
| u32 PlayerControl::getKeysPressed | ( | ) | const |
References aux1, dig, direction_keys, isMoving(), jump, movement_direction, place, sneak, and zoom.
Referenced by Client::sendPlayerPos(), and writePlayerPos().
Here is the call graph for this function:
Here is the caller graph for this function:| v2f PlayerControl::getMovement | ( | ) | const |
References movement_direction, and movement_speed.
Referenced by LuaLocalPlayer::l_get_control(), and ObjectRef::l_get_player_control().
Here is the caller graph for this function:
|
inline |
References movement_speed.
Referenced by getKeysPressed(), and LocalPlayer::handleAutojump().
Here is the caller graph for this function:| void PlayerControl::setMovementFromKeys | ( | ) |
References direction_keys, movement_direction, movement_speed, x, and y.
Referenced by Server::process_PlayerPos(), and Game::updatePlayerControl().
Here is the caller graph for this function:| void PlayerControl::unpackKeysPressed | ( | u32 | keypress_bits | ) |
References aux1, dig, direction_keys, jump, place, sneak, and zoom.
Referenced by Server::process_PlayerPos().
Here is the caller graph for this function:| bool PlayerControl::aux1 = false |
| bool PlayerControl::dig = false |
| u8 PlayerControl::direction_keys = 0 |
| bool PlayerControl::jump = false |
| float PlayerControl::movement_direction = 0.0f |
| float PlayerControl::movement_speed = 0.0f |
| float PlayerControl::pitch = 0.0f |
Referenced by PlayerControl(), and LocalPlayer::applyControl().
| bool PlayerControl::place = false |
| bool PlayerControl::sneak = false |
| float PlayerControl::yaw = 0.0f |
Referenced by PlayerControl(), and LocalPlayer::applyControl().
| bool PlayerControl::zoom = false |