group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
MatchSystem.cpp File Reference

Implementation of the MatchSystem that checks for match win conditions and updates match state accordingly. More...

Include dependency graph for MatchSystem.cpp:

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< ClientIdsystems::handleWinCondition (Registry &registry, int killsToWin)
 Checks if any player has met win condition and updates their PlayerMatchStats accordingly.
void systems::resetStats (Registry &registry)
 Resets all players' match scores to initial values.

Detailed Description

Implementation of the MatchSystem that checks for match win conditions and updates match state accordingly.