载入中...
搜索中...
未找到
eve::sensing::TargetingSpec结构体 参考

A checked target-count and spatial constraint description. 更多...

#include <Targeting.h>

Public 成员函数

Result< void > validate () const
 Validates count, range, tags, zone and coordinate-space invariants.
 

Public 属性

CoordinateSpace space = CoordinateSpace::World2D
 Required coordinate space for origin, candidates and area.
 
TargetDomain domain = TargetDomain::Any
 Relationship class accepted from candidate facts.
 
std::uint32_t minCount = 0
 Minimum number of candidates required in the resolved set.
 
std::uint32_t maxCount = std::numeric_limits<std::uint32_t>::max()
 Maximum number of candidates accepted.
 
CountPolicy countPolicy = CountPolicy::FailIfOutOfRange
 How overflow relative to maxCount is handled. FailIfOutOfRange preserves historical Action/resolver behavior; TruncateToMax keeps the nearest maxCount candidates (requires distance-sortable locations).
 
float minRange = 0.f
 Minimum distance, in world units or grid cells according to space.
 
float maxRange = std::numeric_limits<float>::infinity()
 Maximum distance, in world units or grid cells; positive infinity means unbounded.
 
std::vector< std::string > requiredTags
 All tags that each candidate must contain.
 
std::vector< std::string > excludedTags
 Tags that exclude a candidate when present.
 
std::optional< ZoneRef > zone
 Optional logical zone membership required from candidates.
 
std::optional< WorldArea > worldArea
 Optional World2D/World3D area constraint.
 
std::optional< GridArea > gridArea
 Optional Grid2D/Grid3D area constraint.
 
LineOfSightMode lineOfSight = LineOfSightMode::NotRequired
 Whether an injected LOS provider must confirm each candidate.
 

详细描述

A checked target-count and spatial constraint description.

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

成员函数说明

◆ validate()

Result< void > eve::sensing::TargetingSpec::validate ( ) const

Validates count, range, tags, zone and coordinate-space invariants.

返回
Success or a structured Rejected result.

在文件 Targeting.cpp 第 240 行定义.

引用了 eve::Diagnostic::error(), excludedTags, eve::Result< T >::failure(), gridArea, eve::InvalidArgument, maxCount, maxRange, minCount, minRange, requiredTags, space, eve::Result< T >::success(), tag, worldArea , 以及 zone.

被这些函数引用 eve::sensing::TargetingQuery::validate().

类成员变量说明

◆ countPolicy

CountPolicy eve::sensing::TargetingSpec::countPolicy = CountPolicy::FailIfOutOfRange

How overflow relative to maxCount is handled. FailIfOutOfRange preserves historical Action/resolver behavior; TruncateToMax keeps the nearest maxCount candidates (requires distance-sortable locations).

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

◆ domain

TargetDomain eve::sensing::TargetingSpec::domain = TargetDomain::Any

Relationship class accepted from candidate facts.

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

◆ excludedTags

std::vector<std::string> eve::sensing::TargetingSpec::excludedTags

Tags that exclude a candidate when present.

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

被这些函数引用 validate().

◆ gridArea

std::optional<GridArea> eve::sensing::TargetingSpec::gridArea

Optional Grid2D/Grid3D area constraint.

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

被这些函数引用 validate().

◆ lineOfSight

LineOfSightMode eve::sensing::TargetingSpec::lineOfSight = LineOfSightMode::NotRequired

Whether an injected LOS provider must confirm each candidate.

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

◆ maxCount

std::uint32_t eve::sensing::TargetingSpec::maxCount = std::numeric_limits<std::uint32_t>::max()

Maximum number of candidates accepted.

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

被这些函数引用 validate().

◆ maxRange

float eve::sensing::TargetingSpec::maxRange = std::numeric_limits<float>::infinity()

Maximum distance, in world units or grid cells; positive infinity means unbounded.

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

被这些函数引用 validate().

◆ minCount

std::uint32_t eve::sensing::TargetingSpec::minCount = 0

Minimum number of candidates required in the resolved set.

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

被这些函数引用 validate().

◆ minRange

float eve::sensing::TargetingSpec::minRange = 0.f

Minimum distance, in world units or grid cells according to space.

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

被这些函数引用 validate().

◆ requiredTags

std::vector<std::string> eve::sensing::TargetingSpec::requiredTags

All tags that each candidate must contain.

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

被这些函数引用 validate().

◆ space

CoordinateSpace eve::sensing::TargetingSpec::space = CoordinateSpace::World2D

Required coordinate space for origin, candidates and area.

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

被这些函数引用 validate() , 以及 eve::sensing::TargetingQuery::validate().

◆ worldArea

std::optional<WorldArea> eve::sensing::TargetingSpec::worldArea

Optional World2D/World3D area constraint.

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

被这些函数引用 validate().

◆ zone

std::optional<ZoneRef> eve::sensing::TargetingSpec::zone

Optional logical zone membership required from candidates.

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

被这些函数引用 validate().


该结构体的文档由以下文件生成: