Owner-thread FIFO adapter for player input and command bindings. 更多...
#include <AbilityController.h>
Public 成员函数 | |
| Result< void > | enqueue (AbilityIntent intent) |
| Append an owning player intent; zero grant ids are rejected. | |
| Result< std::optional< AbilityIntent > > | nextIntent (SimulationTick tick) override |
| Consume the oldest queued player intent, if any. | |
| std::size_t | pendingCount () const noexcept |
| Number of pending player intents. | |
| void | clear () noexcept |
| Discard all pending player intents. | |
Public 成员函数 继承自 eve::action::IAbilityIntentSource | |
| virtual | ~IAbilityIntentSource ()=default |
| Releases IAbilityIntentSource resources. | |
详细描述
Owner-thread FIFO adapter for player input and command bindings.
在文件 AbilityController.h 第 37 行定义.
成员函数说明
◆ clear()
|
inlinenoexcept |
Discard all pending player intents.
在文件 AbilityController.h 第 46 行定义.
◆ enqueue()
| Result< void > eve::action::PlayerAbilityIntentQueue::enqueue | ( | AbilityIntent | intent | ) |
Append an owning player intent; zero grant ids are rejected.
在文件 AbilityController.cpp 第 9 行定义.
引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::action::AbilityIntent::grantId, eve::InvalidArgument, eve::detail::StrongUint64< Tag >::isZero(), eve::Status::success() , 以及 eve::Result< T >::success().
◆ nextIntent()
|
overridevirtual |
Consume the oldest queued player intent, if any.
实现了 eve::action::IAbilityIntentSource.
在文件 AbilityController.cpp 第 17 行定义.
引用了 eve::NoOp , 以及 eve::Status::success().
◆ pendingCount()
|
inlinenoexcept |
Number of pending player intents.
在文件 AbilityController.h 第 44 行定义.
该类的文档由以下文件生成:
- src/modules/action/AbilityController.h
- src/modules/action/AbilityController.cpp
Public 成员函数 继承自