group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PowerupSpawnerSystem.hpp
Go to the documentation of this file.
1
3
4#pragma once
10
11#include <vector>
12
14namespace systems
15{
16
17bool hasPowerup(const PowerupState& state, PowerupType type);
18void removePowerup(PowerupState& state, PowerupType type);
19
21void applyPowerupSpawnerConfig(Registry& registry, const MatchConfig& matchConfig);
22
24void resetPowerupSpawnersForMatch(Registry& registry, const MatchConfig& matchConfig);
25
31void runPowerupSpawners(Registry& registry,
32 float dt,
33 const MatchConfig& matchConfig,
34 std::vector<NetParticleEvent>& outEvents);
35
36} // namespace systems
Powerup spawner information.
PowerupType
Definition PowerupSpawner.hpp:8
Powerup state information.
Shared ECS registry type alias for the game engine.
entt::registry Registry
Shared ECS registry type alias.
Definition Registry.hpp:11
Wire-format particle effect event broadcast from server to all clients.
Client-only input sampling system — split into two halves so mouse look can run every iterate() (smoo...
Definition DebugUI.hpp:15
void runPowerupSpawners(Registry &registry, float dt, const MatchConfig &matchConfig, std::vector< NetParticleEvent > &outEvents)
Tick Powerup spawners: check player overlap for pickup, manage cooldowns.
Definition PowerupSpawnerSystem.cpp:110
bool hasPowerup(const PowerupState &state, PowerupType type)
Definition PowerupSpawnerSystem.cpp:23
void resetPowerupSpawnersForMatch(Registry &registry, const MatchConfig &matchConfig)
Hide all powerups and restart their initial match-start spawn delay.
Definition PowerupSpawnerSystem.cpp:64
void applyPowerupSpawnerConfig(Registry &registry, const MatchConfig &matchConfig)
Clamp pending powerup cooldowns to the current host-managed timing settings.
Definition PowerupSpawnerSystem.cpp:51
void removePowerup(PowerupState &state, PowerupType type)
Definition PowerupSpawnerSystem.cpp:46