group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
Bot.hpp File Reference

Headless network-only client bot for load-testing the server. More...

#include "ecs/components/InputSnapshot.hpp"
#include "ecs/registry/Registry.hpp"
#include "network/Client.hpp"
#include "systems/InputRingBuffer.hpp"
#include <SDL3/SDL_stdinc.h>
#include <atomic>
#include <cstdint>
#include <glm/vec3.hpp>
#include <string>
#include <thread>
Include dependency graph for Bot.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Bot

Detailed Description

Headless network-only client bot for load-testing the server.

A Bot owns one Client connection and one Registry, runs a fixed-rate tick loop on its own thread, and:

  • sends an InputSnapshot every tick (with the same redundant-multi-input wire format as the real client),
  • drains incoming server snapshots via Client::poll so the connection keeps consuming bandwidth at the same rate as a real client.

No rendering, no audio, no physics, no animation. The Registry exists only so the Client's snapshot loader has somewhere to apply state to — it is never read after that.