32 static constexpr std::array<PowerupConfig, 7> k_kPowerupConfigs{{
36 .spawnCooldown = 240.0f,
42 .spawnCooldown = 240.0f,
47 return k_kPowerupConfigs[
static_cast<std::size_t
>(type)];
Powerup spawner information.
PowerupType
Definition PowerupSpawner.hpp:9
@ Shield
Definition PowerupSpawner.hpp:11
@ Damage
Definition PowerupSpawner.hpp:10
const PowerupConfig & getPowerupConfig(PowerupType type)
Definition PowerupState.hpp:30
Definition PowerupState.hpp:12
PowerupType type
Definition PowerupState.hpp:13
float timeRemaining
Definition PowerupState.hpp:14
Definition PowerupState.hpp:23
PowerupType type
Definition PowerupState.hpp:24
float spawnCooldown
Definition PowerupState.hpp:26
float duration
Definition PowerupState.hpp:25
float amount
Definition PowerupState.hpp:27
Definition PowerupState.hpp:18
std::vector< ActivePowerup > active
Definition PowerupState.hpp:19