group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PlayerStateEnums.hpp File Reference

Locomotion mode + wall-side enums shared by PlayerVisState and PlayerSimState. More...

#include <cstdint>
Include dependency graph for PlayerStateEnums.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  MoveMode : uint8_t {
  OnFoot , Sliding , WallRunning , Climbing ,
  LedgeGrabbing
}
 Movement mode — mutually exclusive locomotion states. More...
enum class  WallSide : uint8_t { None , Left , Right }
 Which side a wall is on relative to the player. More...

Detailed Description

Locomotion mode + wall-side enums shared by PlayerVisState and PlayerSimState.

Split out of the original PlayerState.hpp as part of Phase 2 of the networking overhaul. Both the replicated half (PlayerVisState — includes moveMode + wallRunSide) and the server-only half (PlayerSimState — refers to WallSide via blacklist logic) need these enum types, so they live in a small leaf header to avoid a circular include between the two state structs.

Enumeration Type Documentation

◆ MoveMode

enum class MoveMode : uint8_t
strong

Movement mode — mutually exclusive locomotion states.

Enumerator
OnFoot 

Normal ground/air movement (walk, sprint, crouch, airborne).

Sliding 

Momentum slide on the ground.

WallRunning 

Running along a wall surface.

Climbing 

Climbing vertically up a wall.

LedgeGrabbing 

Holding onto a ledge at the top of a wall.

◆ WallSide

enum class WallSide : uint8_t
strong

Which side a wall is on relative to the player.

Enumerator
None 
Left 
Right