Arbitrates deterministic directional entry into connected narrow map corridors. 更多...
#include <RTSSystems.h>
静态 Public 成员函数 | |
| static Result< std::size_t > | step (const map::Pathfinder &pathfinder, const NavigationGrid &grid) |
| Reserve corridor direction, then next narrow cells, by occupancy, priority and stable identity. | |
详细描述
Arbitrates deterministic directional entry into connected narrow map corridors.
在文件 RTSSystems.h 第 288 行定义.
成员函数说明
◆ step()
|
static |
Reserve corridor direction, then next narrow cells, by occupancy, priority and stable identity.
- 参数
-
pathfinder Canonical provider of cell walkability. grid World/grid conversion shared with route planning.
- 返回
- Number of moving units inspected, or a structured failure (including corridors exceeding 1024 cells).
- 备注
- Looks ahead at most three route waypoints. Existing corridor occupants precede external entrants.
Opposing occupants may receive a radius-checked evacuation target toward an exit-side bay. Ending evacuation invalidates the cached route and defers motion until replanning.
@thread Simulation owner thread only; no callbacks or retained component pointers.
在文件 RTSTraffic.cpp 第 119 行定义.
引用了 a, b, begin, cell, current, distance, eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument, eve::InvariantViolation, eve::rts::systems_internal::isMovementOrder(), key, left, order, point, position, priority, radius, eve::rts::systems_internal::readCurrent(), right, seed, subject , 以及 view.
该类的文档由以下文件生成:
- src/modules/rts/RTSSystems.h
- src/modules/rts/RTSTraffic.cpp