|
group2 0.1.0
CSE 125 Group 2
|
Static gameplay tuning data for each weapon type. More...
#include "CollisionShape.hpp"#include "ecs/components/Projectile.hpp"#include <array>#include <cstddef>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 WeaponConfig & | getWeaponConfig (WeaponType type) |
| Returns the gameplay config for a weapon type. | |
| const ProjectileConfig & | getProjectileConfig (WeaponType type) |
| Returns the projectile config for a weapon type. | |
| int | calcPickupReserve (int currentReserve, int currentMag, int pickupReserve, int pickupMag, WeaponType type) |
Static gameplay tuning data for each weapon type.
|
inline |
|
inline |
Returns the projectile config for a weapon type.
|
inline |
Returns the gameplay config for a weapon type.
|
inline |
Closed-form 5-segment R-301 recoil pattern (horizontal, right-positive).
Defined over n in [1, 28]; returns cumulative H in pattern units.
|
inline |
Closed-form 5-segment R-301 recoil pattern (vertical, up-positive).
Defined over n in [1, 28]; returns cumulative V in pattern units.