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

Implementation of the server-side shot-resolution log. More...

#include "ShotLog.hpp"
#include <SDL3/SDL.h>
#include <cstdio>
#include <cstdlib>
#include <mutex>
Include dependency graph for ShotLog.cpp:

Namespaces

namespace  group2
namespace  group2::perf
namespace  group2::perf::shotlog

Functions

void group2::perf::shotlog::openIfRequested ()
 Open the log file from GROUP2_SERVER_SHOTS_CSV if set, write the CSV header, and remember the FILE* for subsequent recordShotResolution calls.
void group2::perf::shotlog::recordShotResolution (const ShotResolution &shot)
 Append one shot-resolution row.
void group2::perf::shotlog::close () noexcept
 Flush + close the log file. Called from ServerGame::shutdown.

Detailed Description

Implementation of the server-side shot-resolution log.