Deterministic directed graph of combat ability transitions. 更多...
#include <ComboGraph.h>
Public 成员函数 | |
| Result< void > | addEdge (ComboGraphEdge edge) |
| Add one validated edge; duplicate from/to/input triples Conflict. | |
| void | clear () noexcept |
| Remove all edges. | |
| Result< ComboGraphMatch > | match (const LogicalId &from, std::string_view input, bool allowCancel, bool allowCombo) const |
| Resolve the highest-priority legal transition for a source ability and input. | |
| std::size_t | edgeCount () const noexcept |
| Number of stored edges. | |
详细描述
Deterministic directed graph of combat ability transitions.
The graph does not activate abilities. Player/AI adapters query it together with cancel/combo windows, then submit the next AbilityIntent.
在文件 ComboGraph.h 第 43 行定义.
成员函数说明
◆ addEdge()
| Result< void > eve::combat::ComboGraph::addEdge | ( | ComboGraphEdge | edge | ) |
Add one validated edge; duplicate from/to/input triples Conflict.
在文件 ComboGraph.cpp 第 17 行定义.
引用了 eve::Applied, eve::Conflict, edge, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Status::success(), eve::Result< T >::success() , 以及 valid.
◆ clear()
|
inlinenoexcept |
Remove all edges.
在文件 ComboGraph.h 第 48 行定义.
◆ edgeCount()
|
inlinenoexcept |
Number of stored edges.
在文件 ComboGraph.h 第 57 行定义.
◆ match()
| Result< ComboGraphMatch > eve::combat::ComboGraph::match | ( | const LogicalId & | from, |
| std::string_view | input, | ||
| bool | allowCancel, | ||
| bool | allowCombo | ||
| ) | const |
Resolve the highest-priority legal transition for a source ability and input.
- 参数
-
allowCancel Whether an active cancel window currently permits transitions. allowCombo Whether an active combo window currently permits transitions.
在文件 ComboGraph.cpp 第 29 行定义.
引用了 best, edge, eve::Diagnostic::error(), eve::Result< T >::failure(), from, eve::combat::ComboGraphMatch::from, input, eve::NotFound , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/combat/ComboGraph.h
- src/modules/combat/ComboGraph.cpp