The built-in cover policy: blockers adjacent to the target, prioritising the line. 更多...
#include <LineOfSight.h>
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()
|
overridevirtual |
Cover.
实现了 eve::tactics::ICoverPolicy.
在文件 LineOfSight.cpp 第 154 行定义.
引用了 board, cell, eve::Diagnostic::error(), eve::tactics::ExplicitGraph, eve::Result< T >::failure(), eve::tactics::Full, eve::tactics::Half, eve::tactics::Cell::layer, eve::tactics::None, eve::NotFound, eve::Result< T >::success(), target , 以及 eve::Unsupported.
◆ id()
|
inlineoverridevirtualnoexcept |
该类的文档由以下文件生成:
- src/modules/tactics/LineOfSight.h
- src/modules/tactics/LineOfSight.cpp
Public 成员函数 继承自