style: 代码规范!

This commit is contained in:
zzyyyl
2022-07-19 11:07:02 +08:00
parent 0bfe3330eb
commit 9ee471069e
2 changed files with 8 additions and 8 deletions

View File

@@ -729,10 +729,10 @@ std::pair<asst::Point, int> asst::RoguelikeBattleTaskPlugin::calc_best_direction
}
std::vector<std::pair<const Point&, std::vector<Point>>> DirectionAttackRangeMap;
DirectionAttackRangeMap.reserve(4);
DirectionAttackRangeMap.emplace_back(Point::RightDirection(), std::move(right_attack_range));
DirectionAttackRangeMap.emplace_back(Point::DownDirection(), std::move(down_attack_range));
DirectionAttackRangeMap.emplace_back(Point::LeftDirection(), std::move(left_attack_range));
DirectionAttackRangeMap.emplace_back(Point::UpDirection(), std::move(up_attack_range));
DirectionAttackRangeMap.emplace_back(Point::right(), std::move(right_attack_range));
DirectionAttackRangeMap.emplace_back(Point::down(), std::move(down_attack_range));
DirectionAttackRangeMap.emplace_back(Point::left(), std::move(left_attack_range));
DirectionAttackRangeMap.emplace_back(Point::up(), std::move(up_attack_range));
int max_score = 0;
Point opt_direction;