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

Struct that defines this weapon's type, cooldown, and ammo. More...

#include <WeaponState.hpp>

Public Attributes

WeaponType type = WeaponType::Rifle
int totalAmmo = 0
int currentMagAmmo = 0
float fireCooldown = 0.f
float chargeTime = 0.f
 Accumulated charge time (charge weapons only).

Detailed Description

Struct that defines this weapon's type, cooldown, and ammo.

Member Data Documentation

◆ chargeTime

float GunInstance::chargeTime = 0.f

Accumulated charge time (charge weapons only).

◆ currentMagAmmo

int GunInstance::currentMagAmmo = 0

◆ fireCooldown

float GunInstance::fireCooldown = 0.f

◆ totalAmmo

int GunInstance::totalAmmo = 0

◆ type

WeaponType GunInstance::type = WeaponType::Rifle

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