Skip to content

Commit 6ec0a0b

Browse files
committed
add necessary position copy constructor
1 parent 381b05d commit 6ec0a0b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

soccer/src/soccer/strategy/agent/position/solo_offense.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace strategy {
44

5+
SoloOffense::SoloOffense(const Position& other) : Position{other} {
6+
position_name_ = "SoloOffense";
7+
}
8+
59
SoloOffense::SoloOffense(int r_id) : Position{r_id, "SoloOffense"} {}
610

711
std::optional<RobotIntent> SoloOffense::derived_get_task(RobotIntent intent) {

soccer/src/soccer/strategy/agent/position/solo_offense.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace strategy {
2222

2323
class SoloOffense : public Position {
2424
public:
25+
SoloOffense(const Position& other);
2526
SoloOffense(int r_id);
2627
~SoloOffense() override = default;
2728
SoloOffense(const SoloOffense& other) = default;

0 commit comments

Comments
 (0)