Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
PlayerState Struct Reference

Contains the player's current state information. More...

#include <player.h>

Public Attributes

Vec2 position
 Current player position.
 
Vec2 direction
 Last direction the player was facing.
 
float currentSpeed
 Current movement speed.
 
int currentHealth
 
int currentAmmo
 
bool dashing
 Whether the player is currently dashing.
 
bool directionLocked
 Whether movement direction is locked.
 
bool moving
 Whether the player is moving.
 
bool movementLocked
 Whether movement is locked.
 
float crashOutMultiplier
 Multipler that will be used fro crashout.
 
GunData currentGun
 Currently equipped weapon.
 
Gun gunSlots [2]
 Guns held by the player.
 
SkillState skillState
 Player skills and abilities.
 
Collider collider
 Player collision data.
 
bool insideRoom
 Whether player is in a room.
 
bool insideHallway
 Whether player is in a hallway.
 
bool insideEnd
 Whether player is at an endpoint.
 
SDL_RendererFlip flip
 Flip state for rendering.
 

Detailed Description

Contains the player's current state information.

Member Data Documentation

◆ collider

Collider PlayerState::collider

Player collision data.

◆ crashOutMultiplier

float PlayerState::crashOutMultiplier

Multipler that will be used fro crashout.

◆ currentAmmo

int PlayerState::currentAmmo

◆ currentGun

GunData PlayerState::currentGun

Currently equipped weapon.

◆ currentHealth

int PlayerState::currentHealth

◆ currentSpeed

float PlayerState::currentSpeed

Current movement speed.

◆ dashing

bool PlayerState::dashing

Whether the player is currently dashing.

◆ direction

Vec2 PlayerState::direction

Last direction the player was facing.

◆ directionLocked

bool PlayerState::directionLocked

Whether movement direction is locked.

◆ flip

SDL_RendererFlip PlayerState::flip

Flip state for rendering.

◆ gunSlots

Gun PlayerState::gunSlots[2]

Guns held by the player.

◆ insideEnd

bool PlayerState::insideEnd

Whether player is at an endpoint.

◆ insideHallway

bool PlayerState::insideHallway

Whether player is in a hallway.

◆ insideRoom

bool PlayerState::insideRoom

Whether player is in a room.

◆ movementLocked

bool PlayerState::movementLocked

Whether movement is locked.

◆ moving

bool PlayerState::moving

Whether the player is moving.

◆ position

Vec2 PlayerState::position

Current player position.

◆ skillState

SkillState PlayerState::skillState

Player skills and abilities.


The documentation for this struct was generated from the following file: