#include <player.h>
|
| 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 |
|
◆ PlayerControl() [1/2]
PlayerControl::PlayerControl |
( |
| ) |
|
|
default |
◆ PlayerControl() [2/2]
PlayerControl::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 ) |
|
inline |
References aux1, dig, direction_keys, jump, movement_direction, movement_speed, pitch, place, sneak, yaw, and zoom.
◆ getKeysPressed()
u32 PlayerControl::getKeysPressed |
( |
| ) |
const |
◆ getMovement()
v2f PlayerControl::getMovement |
( |
| ) |
const |
◆ isMoving()
bool PlayerControl::isMoving |
( |
| ) |
const |
|
inline |
◆ setMovementFromKeys()
void PlayerControl::setMovementFromKeys |
( |
| ) |
|
◆ unpackKeysPressed()
void PlayerControl::unpackKeysPressed |
( |
u32 | keypress_bits | ) |
|
◆ aux1
bool PlayerControl::aux1 = false |
◆ dig
bool PlayerControl::dig = false |
◆ direction_keys
u8 PlayerControl::direction_keys = 0 |
◆ jump
bool PlayerControl::jump = false |
◆ movement_direction
float PlayerControl::movement_direction = 0.0f |
◆ movement_speed
float PlayerControl::movement_speed = 0.0f |
◆ pitch
float PlayerControl::pitch = 0.0f |
◆ place
bool PlayerControl::place = false |
◆ sneak
bool PlayerControl::sneak = false |
◆ yaw
float PlayerControl::yaw = 0.0f |
◆ zoom
bool PlayerControl::zoom = false |
The documentation for this struct was generated from the following files: