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

Player grenade equipment state. More...

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

Go to the source code of this file.

Classes

struct  GrenadeState

Functions

GrenadeState makeDefaultGrenadeState ()
int & grenadeAmmo (GrenadeState &state, WeaponType type)
int grenadeAmmo (const GrenadeState &state, WeaponType type)

Variables

const int defaultGrenadeStartAmount = 2

Detailed Description

Player grenade equipment state.

Function Documentation

◆ grenadeAmmo() [1/2]

int grenadeAmmo ( const GrenadeState & state,
WeaponType type )
inline
Here is the call graph for this function:

◆ grenadeAmmo() [2/2]

int & grenadeAmmo ( GrenadeState & state,
WeaponType type )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeDefaultGrenadeState()

GrenadeState makeDefaultGrenadeState ( )
inline
Here is the caller graph for this function:

Variable Documentation

◆ defaultGrenadeStartAmount

const int defaultGrenadeStartAmount = 2