|
group2 0.1.0
CSE 125 Group 2
|
Implementation of the MatchSystem that checks for match win conditions and updates match state accordingly. More...
#include "MatchSystem.hpp"#include "ecs/components/ClientId.hpp"#include "ecs/components/PlayerMatchStats.hpp"#include "ecs/registry/Registry.hpp"Namespaces | |
| namespace | systems |
| Client-only input sampling system — split into two halves so mouse look can run every iterate() (smooth camera at any FPS) while movement keys run once per physics tick group (server-consistent). | |
Functions | |
| std::optional< ClientId > | systems::handleWinCondition (Registry ®istry, int killsToWin) |
| Checks if any player has met win condition and updates their PlayerMatchStats accordingly. | |
| void | systems::resetStats (Registry ®istry) |
| Resets all players' match scores to initial values. | |
Implementation of the MatchSystem that checks for match win conditions and updates match state accordingly.