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

Static gameplay tuning data for each weapon type. More...

#include "CollisionShape.hpp"
#include "ecs/components/Projectile.hpp"
#include <array>
#include <cstddef>
Include dependency graph for WeaponConfig.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WeaponConfig
 Immutable gameplay stats for a weapon type. More...
struct  ProjectileConfig

Functions

float recoilPatternH_R301 (float n)
 Closed-form 5-segment R-301 recoil pattern (horizontal, right-positive).
float recoilPatternV_R301 (float n)
 Closed-form 5-segment R-301 recoil pattern (vertical, up-positive).
const WeaponConfiggetWeaponConfig (WeaponType type)
 Returns the gameplay config for a weapon type.
const ProjectileConfiggetProjectileConfig (WeaponType type)
 Returns the projectile config for a weapon type.
int calcPickupReserve (int currentReserve, int currentMag, int pickupReserve, int pickupMag, WeaponType type)

Detailed Description

Static gameplay tuning data for each weapon type.

Function Documentation

◆ calcPickupReserve()

int calcPickupReserve ( int currentReserve,
int currentMag,
int pickupReserve,
int pickupMag,
WeaponType type )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getProjectileConfig()

const ProjectileConfig & getProjectileConfig ( WeaponType type)
inline

Returns the projectile config for a weapon type.

Here is the caller graph for this function:

◆ getWeaponConfig()

const WeaponConfig & getWeaponConfig ( WeaponType type)
inline

Returns the gameplay config for a weapon type.

Here is the caller graph for this function:

◆ recoilPatternH_R301()

float recoilPatternH_R301 ( float n)
inline

Closed-form 5-segment R-301 recoil pattern (horizontal, right-positive).

Defined over n in [1, 28]; returns cumulative H in pattern units.

Here is the caller graph for this function:

◆ recoilPatternV_R301()

float recoilPatternV_R301 ( float n)
inline

Closed-form 5-segment R-301 recoil pattern (vertical, up-positive).

Defined over n in [1, 28]; returns cumulative V in pattern units.

Here is the caller graph for this function: