Thunderbots Project
Loading...
Searching...
No Matches
ShadowEnemyTactic Class Reference

#include <shadow_enemy_tactic.h>

Inheritance diagram for ShadowEnemyTactic:
Collaboration diagram for ShadowEnemyTactic:

Public Member Functions

void updateControlParams (std::optional< EnemyThreat > enemy_threat, double shadow_distance)
 
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
 

Detailed Description

The ShadowEnemyTactic will shadow and mark the robot specified in the given EnemyThreat. It will choose to either block the enemy's shot on net or the pass it would receive from another enemy.

Member Function Documentation

◆ accept()

void accept ( TacticVisitor visitor) const
overridevirtual

Accepts a Tactic Visitor and calls the visit function on itself

Parameters
visitorA Tactic Visitor

Implements Tactic.

◆ updateControlParams()

void updateControlParams ( std::optional< EnemyThreat enemy_threat,
double  shadow_distance 
)

Updates the control parameters for this ShadowEnemyTactic

Parameters
enemy_threatThe EnemyThreat indicating which enemy to shadow
shadow_distanceHow far from the enemy the robot will shadow. This is the distance between the center of the enemy robot and the center of the robot shadowing it

The documentation for this class was generated from the following files: