|
Thunderbots Project
|
#include <attacker_tactic.h>


Public Member Functions | |
| AttackerTactic (TbotsProto::AiConfig ai_config) | |
| void | updateControlParams (const Pass &best_pass_so_far, bool pass_committed) |
| void | updateControlParams (std::optional< Point > chip_target) |
| 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 |
This tactic is for a robot performing a pass. It should be used in conjunction with the ReceiverTactic in order to complete the pass.
Note that this tactic does not take into account the time the pass should occur at, it simply tries to move to the best position to take the pass as fast as possible
|
explicit |
Creates a new AttackerTactic
| ai_config | The AI configuration |
|
overridevirtual |
| void updateControlParams | ( | const Pass & | best_pass_so_far, |
| bool | pass_committed | ||
| ) |
Updates the control parameters for this AttackerTactic.
| updated_pass | The pass to perform |
| void updateControlParams | ( | std::optional< Point > | chip_target | ) |
Updates the control parameters for this AttackerTactic
| chip_target | An optional point that the robot will chip towards when it is unable to shoot and is in danger of losing the ball to an enemy. If this value is not provided, the point defaults to the enemy goal |