|
Thunderbots Project
|
#include <kickoff_enemy_play.h>


Public Member Functions | |
| KickoffEnemyPlay (TbotsProto::AiConfig config) | |
| void | getNextTactics (TacticCoroutine::push_type &yield, const WorldPtr &world_ptr) override |
Public Member Functions inherited from Play | |
| Play (TbotsProto::AiConfig ai_config, bool requires_goalie) | |
| virtual std::unique_ptr< TbotsProto::PrimitiveSet > | get (const WorldPtr &world_ptr, const InterPlayCommunication &inter_play_communication, const SetInterPlayCommunicationCallback &set_inter_play_communication_fun) |
| const std::map< std::shared_ptr< const Tactic >, RobotId > & | getTacticRobotIdAssignment () const |
| virtual std::vector< std::string > | getState () |
Additional Inherited Members | |
Protected Member Functions inherited from Play | |
| virtual void | updateTactics (const PlayUpdate &play_update) |
Protected Attributes inherited from Play | |
| TbotsProto::AiConfig | ai_config |
| std::shared_ptr< GoalieTactic > | goalie_tactic |
| std::map< std::shared_ptr< const Tactic >, RobotId > | tactic_robot_id_assignment |
| std::map< RobotId, TrajectoryPath > | robot_trajectories |
| TbotsProto::ObstacleList | obstacle_list |
| TbotsProto::PathVisualization | path_visualization |
A play that runs when its currently the enemies kick off, prioritizes defending the net and shadowing the robot that is nearest to the ball. Any remaining bots will block some odd angles to the net.
|
overridevirtual |
This function yields a list of shared_ptrs to the Tactics the Play wants to run at this time, in order of priority. This yield happens in place of a return.
TODO (#2359): delete once all plays are not coroutines
| yield | The coroutine push_type for the Play |
| world | The current state of the world |
Implements Play.