Authoritative projection of active semantic combo-input windows. 更多...
#include <ActionComboWindowState.h>
Public 成员函数 | |
| ActionComboWindowState (ComboSubjectResolver resolver) | |
| Construct with a synchronous stable-subject resolver. | |
| ~ActionComboWindowState () override | |
| Action combo window state. | |
| void | setEnabled (bool enabled) |
| Opt this state owner into or out of Action window dispatch. | |
| bool | enabled () const |
| Return whether this exact owner is registered. | |
| bool | supports (ActionStateWindowKind kind) const noexcept override |
| Whether this sink owns the supplied semantic window kind. | |
| Result< void > | enter (const ActionStateWindowBinding &binding, const ActionTimelineEvent &event, const ActionNotifyContext &context) override |
| Enter one validated window or idempotently observe the same active key. | |
| Result< void > | exit (const ActionStateWindowBinding &binding, const ActionTimelineEvent &event, const ActionNotifyContext &context) override |
| Exit one previously entered window by execution and item identity. | |
| std::vector< std::string > | availableInputs (SubjectRef subject) const |
| Return sorted unique semantic inputs currently accepted for a subject. | |
| Result< ActionComboMatch > | match (SubjectRef subject, std::string_view input) const |
| Resolve the first deterministic active window accepting an input. | |
| std::size_t | activeCount () const noexcept |
| Return the number of active execution/item keys. | |
Public 成员函数 继承自 eve::action::IActionStateWindowSink | |
| virtual | ~IActionStateWindowSink ()=default |
| Releases IActionStateWindowSink resources. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::action::IActionStateWindowSink | |
| static constexpr const char * | capabilityName = "eve.action.state-window-sink" |
详细描述
Authoritative projection of active semantic combo-input windows.
This object does not read devices or submit gameplay commands. Player, AI, and script input adapters map their source into the same semantic input string and query this owner before choosing the next action. All methods are owner-thread-only.
在文件 ActionComboWindowState.h 第 39 行定义.
构造及析构函数说明
◆ ActionComboWindowState()
|
explicit |
Construct with a synchronous stable-subject resolver.
在文件 ActionComboWindowState.cpp 第 13 行定义.
◆ ~ActionComboWindowState()
|
override |
Action combo window state.
在文件 ActionComboWindowState.cpp 第 15 行定义.
成员函数说明
◆ activeCount()
|
inlinenoexcept |
Return the number of active execution/item keys.
在文件 ActionComboWindowState.h 第 69 行定义.
◆ availableInputs()
| std::vector< std::string > eve::action::input::ActionComboWindowState::availableInputs | ( | SubjectRef | subject | ) | const |
Return sorted unique semantic inputs currently accepted for a subject.
在文件 ActionComboWindowState.cpp 第 87 行定义.
◆ enabled()
| bool eve::action::input::ActionComboWindowState::enabled | ( | ) | const |
Return whether this exact owner is registered.
在文件 ActionComboWindowState.cpp 第 17 行定义.
引用了 index.
被这些函数引用 setEnabled().
◆ enter()
|
overridevirtual |
Enter one validated window or idempotently observe the same active key.
Enter.
实现了 eve::action::IActionStateWindowSink.
在文件 ActionComboWindowState.cpp 第 35 行定义.
引用了 eve::Applied, binding, eve::Conflict, context, eve::Diagnostic::error(), eve::Result< T >::failure(), found, handle, eve::InvalidArgument, key, eve::NoOp, eve::NotFound, subject, eve::Status::success(), eve::Result< T >::success(), supports() , 以及 eve::Unsupported.
◆ exit()
|
overridevirtual |
Exit one previously entered window by execution and item identity.
Exit.
实现了 eve::action::IActionStateWindowSink.
在文件 ActionComboWindowState.cpp 第 74 行定义.
引用了 eve::Applied, binding, context, eve::Diagnostic::error(), eve::Result< T >::failure(), found, key, eve::NoOp, eve::Status::success(), eve::Result< T >::success(), supports() , 以及 eve::Unsupported.
◆ match()
| Result< ActionComboMatch > eve::action::input::ActionComboWindowState::match | ( | SubjectRef | subject, |
| std::string_view | input | ||
| ) | const |
Resolve the first deterministic active window accepting an input.
在文件 ActionComboWindowState.cpp 第 98 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), input, eve::InvalidArgument, key, eve::NotFound, subject , 以及 eve::Result< T >::success().
◆ setEnabled()
| void eve::action::input::ActionComboWindowState::setEnabled | ( | bool | enabled | ) |
◆ supports()
|
overridevirtualnoexcept |
Whether this sink owns the supplied semantic window kind.
Supports.
实现了 eve::action::IActionStateWindowSink.
在文件 ActionComboWindowState.cpp 第 31 行定义.
引用了 eve::action::Combo , 以及 kind.
该类的文档由以下文件生成:
- src/modules/action/input/ActionComboWindowState.h
- src/modules/action/input/ActionComboWindowState.cpp
Public 成员函数 继承自