|
group2 0.1.0
CSE 125 Group 2
|
Component attached to armed entities (players, bots). More...
#include <WeaponState.hpp>
Public Attributes | |
| WeaponType | current = WeaponType::Rifle |
| Currently equipped weapon type. | |
| float | fireCooldown = 0.f |
| Counts down toward 0 each frame (seconds). | |
| int | ammo = 30 |
| Remaining ammunition for the current weapon. | |
Component attached to armed entities (players, bots).
| int WeaponState::ammo = 30 |
Remaining ammunition for the current weapon.
| WeaponType WeaponState::current = WeaponType::Rifle |
Currently equipped weapon type.
| float WeaponState::fireCooldown = 0.f |
Counts down toward 0 each frame (seconds).