载入中...
搜索中...
未找到
eve::tactics::GridCoverPolicy类 参考final

The built-in cover policy: blockers adjacent to the target, prioritising the line. 更多...

#include <LineOfSight.h>

类 eve::tactics::GridCoverPolicy 继承关系图:
eve::tactics::ICoverPolicy

Public 成员函数

std::string_view id () const noexcept override
 Id.
 
Result< CoverLevel > cover (const BoardState &board, Cell attacker, Cell target) const override
 Cover.
 
- Public 成员函数 继承自 eve::tactics::ICoverPolicy
virtual ~ICoverPolicy ()=default
 Releases ICoverPolicy resources.
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::tactics::ICoverPolicy
static constexpr const char * capabilityName = "eve.tactics.ICoverPolicy"
 Capability name a provider registers under.
 

详细描述

The built-in cover policy: blockers adjacent to the target, prioritising the line.

Full when the straight trace from attacker to target is obstructed (something is in the way), Half when the target merely has an adjacent blocker that is not on that trace, and None otherwise. The distinction matters because the two outcomes are different gameplay: "the shot is absorbed" versus "the target is harder to hit".

在文件 LineOfSight.h 第 140 行定义.

成员函数说明

◆ cover()

◆ id()

std::string_view eve::tactics::GridCoverPolicy::id ( ) const
inlineoverridevirtualnoexcept

Id.

实现了 eve::tactics::ICoverPolicy.

在文件 LineOfSight.h 第 143 行定义.


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