Skip to content

Commit

Permalink
More defenders, less attackers
Browse files Browse the repository at this point in the history
  • Loading branch information
Luuk committed Jun 17, 2024
1 parent fbb0409 commit 1fd0ade
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions roboteam_ai/src/stp/plays/offensive/Attack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ Attack::Attack() : Play() {
std::make_unique<role::Defender>("defender_0"),
std::make_unique<role::Formation>("attacker_0"),
std::make_unique<role::Defender>("defender_1"),
std::make_unique<role::Formation>("attacker_1"),
std::make_unique<role::Defender>("defender_2"),
// Additional roles if we play 11v11
std::make_unique<role::Formation>("waller_0"),
std::make_unique<role::Formation>("waller_1"),
std::make_unique<role::Formation>("attacker_1"),
std::make_unique<role::Defender>("defender_3"),
std::make_unique<role::Formation>("attacker_2"),
std::make_unique<role::Defender>("defender_2"),
std::make_unique<role::Formation>("attacker_3"),
};
}

Expand All @@ -60,10 +60,10 @@ Dealer::FlagMap Attack::decideRoleFlags() const noexcept {
flagMap.insert({"defender_0", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_1", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_2", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_3", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"attacker_0", {DealerFlagPriority::LOW_PRIORITY, {}}});
flagMap.insert({"attacker_1", {DealerFlagPriority::LOW_PRIORITY, {}}});
flagMap.insert({"attacker_2", {DealerFlagPriority::LOW_PRIORITY, {}}});
flagMap.insert({"attacker_3", {DealerFlagPriority::LOW_PRIORITY, {}}});

return flagMap;
}
Expand Down
6 changes: 3 additions & 3 deletions roboteam_ai/src/stp/plays/offensive/AttackingPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ AttackingPass::AttackingPass() : Play() {
// Additional roles if we play 11v11
std::make_unique<role::Formation>("waller_0"),
std::make_unique<role::Formation>("waller_1"),
std::make_unique<role::Formation>("attacker_1"),
std::make_unique<role::Defender>("defender_2"),
std::make_unique<role::Formation>("attacker_2"),
std::make_unique<role::Defender>("defender_3"),
std::make_unique<role::Formation>("attacker_1"),
};
}

Expand All @@ -67,9 +67,9 @@ Dealer::FlagMap AttackingPass::decideRoleFlags() const noexcept {
flagMap.insert({"defender_0", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_1", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_2", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_3", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"attacker_0", {DealerFlagPriority::LOW_PRIORITY, {}}});
flagMap.insert({"attacker_1", {DealerFlagPriority::LOW_PRIORITY, {}}});
flagMap.insert({"attacker_2", {DealerFlagPriority::LOW_PRIORITY, {}}});

return flagMap;
}
Expand Down
6 changes: 3 additions & 3 deletions roboteam_ai/src/stp/plays/referee_specific/FreeKickUsPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ FreeKickUsPass::FreeKickUsPass() : Play() {
// Additional roles if we play 11v11
std::make_unique<role::Formation>("waller_0"),
std::make_unique<role::Formation>("waller_1"),
std::make_unique<role::Formation>("attacker_1"),
std::make_unique<role::Defender>("defender_2"),
std::make_unique<role::Formation>("attacker_2"),
std::make_unique<role::Defender>("defender_3"),
std::make_unique<role::Formation>("attacker_1"),
};
}

Expand All @@ -57,9 +57,9 @@ Dealer::FlagMap FreeKickUsPass::decideRoleFlags() const noexcept {
flagMap.insert({"defender_0", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_1", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_2", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"defender_3", {DealerFlagPriority::MEDIUM_PRIORITY, {}}});
flagMap.insert({"attacker_0", {DealerFlagPriority::HIGH_PRIORITY, {}}});
flagMap.insert({"attacker_1", {DealerFlagPriority::HIGH_PRIORITY, {}}});
flagMap.insert({"attacker_2", {DealerFlagPriority::HIGH_PRIORITY, {}}});

return flagMap;
}
Expand Down

0 comments on commit 1fd0ade

Please sign in to comment.