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

Immutable gameplay stats for a weapon type. More...

#include <WeaponConfig.hpp>

Public Attributes

float fireCooldown = 0.1f
 
int magazineSize = 0
 
int defaultAmmoCapacity = 0
 
float damage = 0.0f
 
bool hitscan = true
 
float initialProjectileSpeed = 0.0f
 
bool explosive = false
 
bool isBeam = false
 True for continuous beam weapons (no per-shot cooldown).
 
bool isCharge = false
 True for charge weapons (hold to charge, release to fire).
 
float dps = 0.0f
 Damage per second (beam weapons only; discrete weapons use damage).
 
float ammoPerSecond = 0.0f
 Ammo drain rate (beam weapons only).
 
float chargeDamage = 0.0f
 Damage dealt on release (charge weapons only).
 

Detailed Description

Immutable gameplay stats for a weapon type.

Member Data Documentation

◆ ammoPerSecond

float WeaponConfig::ammoPerSecond = 0.0f

Ammo drain rate (beam weapons only).

◆ chargeDamage

float WeaponConfig::chargeDamage = 0.0f

Damage dealt on release (charge weapons only).

◆ damage

float WeaponConfig::damage = 0.0f

◆ defaultAmmoCapacity

int WeaponConfig::defaultAmmoCapacity = 0

◆ dps

float WeaponConfig::dps = 0.0f

Damage per second (beam weapons only; discrete weapons use damage).

◆ explosive

bool WeaponConfig::explosive = false

◆ fireCooldown

float WeaponConfig::fireCooldown = 0.1f

◆ hitscan

bool WeaponConfig::hitscan = true

◆ initialProjectileSpeed

float WeaponConfig::initialProjectileSpeed = 0.0f

◆ isBeam

bool WeaponConfig::isBeam = false

True for continuous beam weapons (no per-shot cooldown).

◆ isCharge

bool WeaponConfig::isCharge = false

True for charge weapons (hold to charge, release to fire).

◆ magazineSize

int WeaponConfig::magazineSize = 0

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