R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
rtype::BotOptions Struct Reference

Settings of a bot run, read from the command line. More...

#include </__w/project-rtype/project-rtype/tools/bot/include/rtype/bot_options.hpp>

Public Attributes

BotCommand command = BotCommand::Run
 What to do; the settings only matter for BotCommand::Run.
 
BotSettings settings
 Server, name (bot by default) and seed.
 
bool seeded = false
 --seed was given: otherwise each run draws its own.
 
std::optional< std::uint32_t > seconds
 --seconds: leave after playing this long; nothing plays until Ctrl+C.
 
std::uint32_t count = 1
 --count: number of bots, 1 to max_bots, named and seeded by bot_team().
 
std::optional< std::filesystem::path > inputs
 --inputs: script replayed by every bot instead of random inputs, read with load_input_script().
 
std::optional< std::filesystem::path > stats
 --stats: CSV file written at the end, one line per bot that played (bot_stats_header, then bot_stats_line()).
 

Detailed Description

Settings of a bot run, read from the command line.

Member Data Documentation

◆ command

BotCommand rtype::BotOptions::command = BotCommand::Run

What to do; the settings only matter for BotCommand::Run.

◆ count

std::uint32_t rtype::BotOptions::count = 1

--count: number of bots, 1 to max_bots, named and seeded by bot_team().

◆ inputs

std::optional<std::filesystem::path> rtype::BotOptions::inputs

--inputs: script replayed by every bot instead of random inputs, read with load_input_script().

◆ seconds

std::optional<std::uint32_t> rtype::BotOptions::seconds

--seconds: leave after playing this long; nothing plays until Ctrl+C.

◆ seeded

bool rtype::BotOptions::seeded = false

--seed was given: otherwise each run draws its own.

◆ settings

BotSettings rtype::BotOptions::settings

Server, name (bot by default) and seed.

◆ stats

std::optional<std::filesystem::path> rtype::BotOptions::stats

--stats: CSV file written at the end, one line per bot that played (bot_stats_header, then bot_stats_line()).


The documentation for this struct was generated from the following file: