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

A player without a window: joins a server and holds random or recorded inputs. More...

#include <aegis2d/ecs/components.hpp>
#include <aegis2d/net/context.hpp>
#include <rtype/client_session.hpp>
#include <rtype/input_script.hpp>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <random>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

class  rtype::RandomInputs
 Random actions held for random times, like a player mashing the keys. More...
 
struct  rtype::BotSettings
 What a bot needs to join a server. More...
 
class  rtype::Bot
 A client without window nor sound: a ClientSession whose inputs are RandomInputs, or ScriptedInputs when its settings have a script. More...
 

Namespaces

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

Functions

std::vector< BotSettings > rtype::bot_team (const BotSettings &base, std::size_t count)
 The settings of count bots that play together, for --count.
 

Detailed Description

A player without a window: joins a server and holds random or recorded inputs.