Selects reachable shoot-and-scoot positions without taking ownership of map navigation. 更多...
#include <RTSSystems.h>
静态 Public 成员函数 | |
| static Result< ArtilleryRelocationSelection > | select (Unit &unit, WorldPosition target, float distance, float weaponRange, map::Pathfinder &pathfinder, const NavigationGrid &grid) |
| Rank reachable candidate positions by hostile coverage, weapon range, friendly conflicts and revisit. | |
详细描述
Selects reachable shoot-and-scoot positions without taking ownership of map navigation.
在文件 RTSSystems.h 第 530 行定义.
成员函数说明
◆ select()
|
static |
Rank reachable candidate positions by hostile coverage, weapon range, friendly conflicts and revisit.
- 参数
-
unit Artillery unit that is about to relocate. target Last fired-at world position. distance Configured relocation distance. weaponRange Maximum range of the firing weapon. pathfinder Canonical map path provider used only for reachability checks. grid Shared world/grid projection.
在文件 RTSSystems.cpp 第 3254 行定义.
引用了 eve::Applied, eve::rts::ArtilleryRelocationSelection::avoidedDepartedPosition, eve::rts::ArtilleryRelocationSelection::avoidedThreat, best, eve::rts::ArtilleryRelocationSelection::conflicts, eve::rts::ArtilleryRelocationSelection::deconflicted, directions, distance, dx, dy, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::map::Pathfinder::findPath(), found, index, eve::InvalidArgument, eve::map::Pathfinder::isWalkable(), length, eve::NotFound, origin, path, position, range, separation, eve::StaleHandle, subject, eve::Status::success(), eve::Result< T >::success(), target, eve::rts::ArtilleryRelocationSelection::target, eve::rts::ArtilleryRelocationSelection::threat, unit, units, value, x, eve::rts::WorldPosition::x , 以及 y.
该类的文档由以下文件生成:
- src/modules/rts/RTSSystems.h
- src/modules/rts/RTSSystems.cpp