|
R-Type
Networked shoot'em up built on Aegis2D
|
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()). | |
Settings of a bot run, read from the command line.
| BotCommand rtype::BotOptions::command = BotCommand::Run |
What to do; the settings only matter for BotCommand::Run.
| std::uint32_t rtype::BotOptions::count = 1 |
--count: number of bots, 1 to max_bots, named and seeded by bot_team().
| std::optional<std::filesystem::path> rtype::BotOptions::inputs |
--inputs: script replayed by every bot instead of random inputs, read with load_input_script().
| std::optional<std::uint32_t> rtype::BotOptions::seconds |
--seconds: leave after playing this long; nothing plays until Ctrl+C.
| bool rtype::BotOptions::seeded = false |
--seed was given: otherwise each run draws its own.
| BotSettings rtype::BotOptions::settings |
Server, name (bot by default) and seed.
| 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()).