12 #include <mapbox/variant.hpp> 32 mapbox::util::variant<StepFunctionState, StepFunctionStateModule>
fn_;
Game state.
Definition: state.h:42
virtual ~LambdaModule()=default
std::string name()
Definition: module.cpp:41
virtual void step(State *state) override
Definition: lambda.cpp:22
Lets you construct a lightweight module by providing your own step() as an std::function.
Definition: lambda.h:20
std::function< void(State *, Module *)> StepFunctionStateModule
Definition: lambda.h:23
Main namespace for bot-related code.
Definition: areainfo.cpp:17
LambdaModule(StepFunctionState fn, std::string name=std::string())
Definition: lambda.cpp:12
std::function< void(State *)> StepFunctionState
Definition: lambda.h:22
mapbox::util::variant< StepFunctionState, StepFunctionStateModule > fn_
Definition: lambda.h:32
Interface for bot modules.
Definition: module.h:30