Projects RTS vision into canonical map FOV and maintains faction last-known contacts. 更多...
#include <RTSSystems.h>
类 | |
| struct | State |
| Runtime-only revealer bindings; authoritative explored cells remain owned by map::Fov. 更多... | |
静态 Public 成员函数 | |
| static Result< std::size_t > | step (const SimulationStep &step, const NavigationGrid &grid, State &state, const FogProvider &provider) |
| Synchronize revealers, compute each unique provider once, and update persistent contacts. | |
| static void | clear (State &state) noexcept |
| Remove all revealers previously installed by this state. | |
| static const Faction::Intel::Contact * | contact (const Faction &faction, SubjectRef subject) noexcept |
| Find a last-known contact by stable subject identity. | |
详细描述
Projects RTS vision into canonical map FOV and maintains faction last-known contacts.
在文件 RTSSystems.h 第 313 行定义.
成员函数说明
◆ clear()
|
staticnoexcept |
Remove all revealers previously installed by this state.
在文件 RTSSystems.cpp 第 1288 行定义.
被这些函数引用 eve::rts::RTS::setFogProvider() , 以及 eve::rts::RTS::~RTS().
◆ contact()
|
staticnoexcept |
Find a last-known contact by stable subject identity.
- 返回
- Borrowed contact, or nullptr when absent. @ownership The Faction owns the returned contact; callers must not release it. @lifetime Valid only until the faction's contact collection is mutated or the faction is destroyed. @thread Owner simulation thread only.
在文件 RTSSystems.cpp 第 1295 行定义.
◆ step()
|
static |
Synchronize revealers, compute each unique provider once, and update persistent contacts.
在文件 RTSSystems.cpp 第 1302 行定义.
引用了 eve::Applied, binding, enabled, eve::Diagnostic::error(), eve::Result< T >::failure(), handle, eve::InvalidArgument, eve::NoOp, position, state, step, eve::Status::success(), eve::Result< T >::success() , 以及 units.
该类的文档由以下文件生成:
- src/modules/rts/RTSSystems.h
- src/modules/rts/RTSSystems.cpp