载入中...
搜索中...
未找到
eve::sensing::ILineOfSightQuery类 参考abstract

Consumer-owned line-of-sight capability. 更多...

#include <Targeting.h>

类 eve::sensing::ILineOfSightQuery 继承关系图:
eve::physics::TargetingLineOfSightAdapter eve::sensing::LineOfSightRouter eve::tactics::TacticsLineOfSightAdapter

Public 成员函数

virtual ~ILineOfSightQuery ()=default
 Releases ILineOfSightQuery resources.
 
virtual Result< LineOfSightResult > query (const TargetLocation &from, const TargetLocation &to) const =0
 Tests the segment between two same-space locations.
 

静态 Public 属性

static constexpr const char * capabilityName = "eve.sensing.ILineOfSightQuery"
 

详细描述

Consumer-owned line-of-sight capability.

Providers may support only selected coordinate spaces. A present provider must return Unsupported for a space it cannot interpret; it must not convert grid cells to world units implicitly.

在文件 Targeting.h 第 431 行定义.

构造及析构函数说明

◆ ~ILineOfSightQuery()

virtual eve::sensing::ILineOfSightQuery::~ILineOfSightQuery ( )
virtualdefault

Releases ILineOfSightQuery resources.

成员函数说明

◆ query()

virtual Result< LineOfSightResult > eve::sensing::ILineOfSightQuery::query ( const TargetLocation &  from,
const TargetLocation &  to 
) const
pure virtual

Tests the segment between two same-space locations.

参数
fromBorrowed value location of the observer.
toBorrowed value location of the candidate.
返回
Visibility or Unsupported/Rejected with structured diagnostics.
备注
Synchronous; callers must invoke on the provider's documented simulation thread.

在 eve::physics::TargetingLineOfSightAdapter, eve::tactics::TacticsLineOfSightAdapter , 以及 eve::sensing::LineOfSightRouter 内被实现.

被这些函数引用 eve::sensing::TargetingResolver::resolve().

类成员变量说明

◆ capabilityName

constexpr const char* eve::sensing::ILineOfSightQuery::capabilityName = "eve.sensing.ILineOfSightQuery"
staticconstexpr

在文件 Targeting.h 第 433 行定义.


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