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

Weapon state component for armed entities. More...

#include <cstdint>
Include dependency graph for WeaponState.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GunInstance
 Struct that defines this weapon's type, cooldown, and ammo. More...
 
struct  WeaponState
 Component attached to armed entities (players). More...
 

Enumerations

enum class  WeaponType : uint8_t { Rifle , Rocket , RailGun , EnergyGun }
 Weapon type — determines tracer style, damage, sound, and impact effects. More...
 
enum class  WeaponSlot : uint8_t { PRIMARY , SECONDARY , TERTIARY , QUATERNARY }
 

Detailed Description

Weapon state component for armed entities.

Enumeration Type Documentation

◆ WeaponSlot

enum class WeaponSlot : uint8_t
strong
Enumerator
PRIMARY 
SECONDARY 
TERTIARY 
QUATERNARY 

◆ WeaponType

enum class WeaponType : uint8_t
strong

Weapon type — determines tracer style, damage, sound, and impact effects.

Enumerator
Rifle 

Fast hitscan/projectile (R301-style capsule tracer)

Rocket 

Slow arcing projectile (ribbon trail)

RailGun 

Hitscan energy weapon (beam + lightning arcs)

EnergyGun 

Fast hitscan energy burst.