group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
WeaponState Struct Reference

Component attached to armed entities (players, bots). More...

#include <WeaponState.hpp>

Public Attributes

WeaponType current = WeaponType::Rifle
 Currently equipped weapon type.
 
float fireCooldown = 0.f
 Counts down toward 0 each frame (seconds).
 
int ammo = 30
 Remaining ammunition for the current weapon.
 

Detailed Description

Component attached to armed entities (players, bots).

Member Data Documentation

◆ ammo

int WeaponState::ammo = 30

Remaining ammunition for the current weapon.

◆ current

WeaponType WeaponState::current = WeaponType::Rifle

Currently equipped weapon type.

◆ fireCooldown

float WeaponState::fireCooldown = 0.f

Counts down toward 0 each frame (seconds).


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