|
Thunderbots Project
|
#include <pass_defender_tactic.h>


Public Member Functions | |
| PassDefenderTactic (TbotsProto::AiConfig ai_config) | |
| void | updateControlParams (const Point &position_to_block_from, TbotsProto::BallStealMode ball_steal_mode) |
| void | accept (TacticVisitor &visitor) const override |
Public Member Functions inherited from Tactic | |
| Tactic (const std::set< RobotCapability > &capability_reqs_) | |
| virtual bool | done () const =0 |
| virtual std::string | getFSMState () const =0 |
| const std::set< RobotCapability > & | robotCapabilityRequirements () const |
| std::set< RobotCapability > & | mutableRobotCapabilityRequirements () |
| void | setLastExecutionRobot (std::optional< RobotId > last_execution_robot) |
| std::map< RobotId, std::shared_ptr< Primitive > > | get (const WorldPtr &world_ptr) |
Additional Inherited Members | |
Protected Attributes inherited from Tactic | |
| std::optional< RobotId > | last_execution_robot |
A pass defender moves to a location on the field to block a potential pass between enemy robots + intercepts and chips the ball away when an active enemy pass is directed towards the defender.
|
explicit |
Creates a new PassDefenderTactic
| ai_config | The AI configuration |
|
overridevirtual |
| void updateControlParams | ( | const Point & | position_to_block_from, |
| TbotsProto::BallStealMode | ball_steal_mode | ||
| ) |
Update control params for this tactic
| position_to_block_from | The location on the field to block enemy passes from |
| ball_steal_mode | The pass defender's aggressiveness towards the ball |