载入中...
搜索中...
未找到
eve::rts::FogOfWarSystem类 参考

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()

void eve::rts::FogOfWarSystem::clear ( State &  state)
staticnoexcept

Remove all revealers previously installed by this state.

在文件 RTSSystems.cpp 第 1288 行定义.

引用了 binding , 以及 state.

被这些函数引用 eve::rts::RTS::setFogProvider() , 以及 eve::rts::RTS::~RTS().

◆ contact()

const Faction::Intel::Contact * eve::rts::FogOfWarSystem::contact ( const Faction &  faction,
SubjectRef  subject 
)
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 行定义.

引用了 subject , 以及 value.

◆ step()

Result< std::size_t > eve::rts::FogOfWarSystem::step ( const SimulationStep &  step,
const NavigationGrid &  grid,
State &  state,
const FogProvider &  provider 
)
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.


该类的文档由以下文件生成: