R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
bot_stats.hpp File Reference

What a bot measured of its link to the server, for r-type_bot --stats. More...

#include <rtype/bot.hpp>
#include <chrono>
#include <cstdint>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  rtype::BotStats
 The link of one bot over its game, as the network benchmark reads it. More...
 

Namespaces

namespace  rtype
 R-Type game code, built on the Aegis2D engine.
 

Functions

BotStats rtype::measure_bot (const Bot &bot, std::string name, std::chrono::steady_clock::duration played, std::chrono::steady_clock::time_point now)
 Reads what a bot measured, before it leaves.
 
std::string rtype::bot_stats_line (const BotStats &stats)
 One line of a --stats file, in the order of bot_stats_header, without its end.
 

Variables

constexpr std::string_view rtype::bot_stats_header
 First line of a --stats file: the names of the columns of bot_stats_line().
 

Detailed Description

What a bot measured of its link to the server, for r-type_bot --stats.