|
Thunderbots Project
|
#include <ai.h>
Public Member Functions | |
| Ai (const TbotsProto::AiConfig &ai_config) | |
| void | overridePlay (std::unique_ptr< Play > play) |
| std::unique_ptr< TbotsProto::PrimitiveSet > | getPrimitives (const WorldPtr &world_ptr) |
| TbotsProto::PlayInfo | getPlayInfo () const |
| void | overridePlayFromProto (TbotsProto::Play play_proto) |
| void | updateAiConfig (TbotsProto::AiConfig &ai_config) |
This class wraps all our AI logic and decision making.
|
explicit |
Create an AI with given configurations
| ai_config_ | The AI configuration |
| TbotsProto::PlayInfo getPlayInfo | ( | ) | const |
Returns information about the currently running plays and tactics, including the name of the play, and which robots are running which tactics
| std::unique_ptr< TbotsProto::PrimitiveSet > getPrimitives | ( | const WorldPtr & | world_ptr | ) |
Calculates the Primitives that should be run by our Robots given the current state of the world.
| world | The state of the World with which to make the decisions |
| void overridePlay | ( | std::unique_ptr< Play > | play | ) |
Overrides the play
| play | play to override with |
| void overridePlayFromProto | ( | TbotsProto::Play | play_proto | ) |
Overrides the play from the play proto
| play_proto | the play proto |
| void updateAiConfig | ( | TbotsProto::AiConfig & | ai_config | ) |
Update the AiConfig proto
| ai_config | The new AiConfig proto |