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

Gun statistics structure. More...

#include <gun.h>

Public Attributes

float fireRate
 Shots per minute.
 
float spread_angle
 Bullet spread in degrees.
 
int damage
 Damage per bullet.
 
float bulletLifetime
 How long bullets exist before despawning.
 
int bulletsPerShot
 Number of bullets fired per shot (>1 only for shotguns)
 
GunFireMode fireMode
 Firing mode (auto or semi)
 
int bulletVelocity
 Velocity of the bullet.
 
int ammoConsumption
 Ammo consumed per shot.
 

Detailed Description

Gun statistics structure.

Contains the configuration values that define a gun's capabilities

Member Data Documentation

◆ ammoConsumption

int GunStats::ammoConsumption

Ammo consumed per shot.

◆ bulletLifetime

float GunStats::bulletLifetime

How long bullets exist before despawning.

◆ bulletsPerShot

int GunStats::bulletsPerShot

Number of bullets fired per shot (>1 only for shotguns)

◆ bulletVelocity

int GunStats::bulletVelocity

Velocity of the bullet.

◆ damage

int GunStats::damage

Damage per bullet.

◆ fireMode

GunFireMode GunStats::fireMode

Firing mode (auto or semi)

◆ fireRate

float GunStats::fireRate

Shots per minute.

◆ spread_angle

float GunStats::spread_angle

Bullet spread in degrees.


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