mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-04-10 06:14:07 +08:00
style: unify naming conventions across the project
This commit is contained in:
@@ -15,7 +15,7 @@ struct MoveState {
|
||||
class Player {
|
||||
private:
|
||||
|
||||
bool** m_blockPresent;
|
||||
bool** m_block_present;
|
||||
|
||||
float m_yaw;
|
||||
float m_pitch;
|
||||
@@ -24,23 +24,23 @@ private:
|
||||
|
||||
float m_speed = 0.1f;
|
||||
// player is tow block tall, the pos is the lower pos
|
||||
glm::vec3 m_playerPos = glm::vec3(0.0f, 5.0f, 0.0f);
|
||||
glm::vec3 m_player_pos = glm::vec3(0.0f, 5.0f, 0.0f);
|
||||
glm::vec3 m_front = glm::vec3(0, 0, -1);
|
||||
glm::vec3 m_right;
|
||||
MoveState m_moveState;
|
||||
MoveState m_move_state;
|
||||
|
||||
public:
|
||||
Player();
|
||||
|
||||
const glm::vec3& getFront() const;
|
||||
const glm::vec3& getPlayerPos() const;
|
||||
const MoveState& getMoveState() const;
|
||||
const glm::vec3& get_front() const;
|
||||
const glm::vec3& get_player_pos() const;
|
||||
const MoveState& get_move_state() const;
|
||||
|
||||
void init(bool** blockPresent);
|
||||
void setPlayerPos(const glm::vec3& pos);
|
||||
void update(float deltaTime);
|
||||
void updateFrontVec(float offsetX, float offsetY);
|
||||
void updatePlayerMoveState(int key, int action);
|
||||
void init(bool** block_present);
|
||||
void set_player_pos(const glm::vec3& pos);
|
||||
void update(float delta_time);
|
||||
void update_front_vec(float offset_x, float offset_y);
|
||||
void update_player_move_state(int key, int action);
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user