ITaskService adapter for asynchronous move-to requests.
更多...
#include <Navigation.h>
Public 成员函数 | |
| ~NavigationTaskService () override | |
| Navigation task service. | |
| NavigationTaskService (const NavigationTaskService &)=delete | |
| NavigationTaskService & | operator= (const NavigationTaskService &)=delete |
| Result< void > | start (const TaskContext &context, const TaskSpec &spec, std::string &inOutMemoryJson) override |
| Starts . | |
| Result< TaskStatus > | tick (const TaskContext &context, const TaskSpec &spec, std::string &inOutMemoryJson) override |
| Tick. | |
| void | stop (const TaskContext &context, const TaskSpec &spec, StopReason reason, std::string_view memoryJson) noexcept override |
| Stops . | |
| std::size_t | outstandingCount () const noexcept |
| Number of live backend tickets owned by this adapter. | |
Public 成员函数 继承自 eve::npc_ai::ITaskService | |
| virtual | ~ITaskService ()=default |
| Releases ITaskService resources. | |
静态 Public 成员函数 | |
| static Result< std::unique_ptr< NavigationTaskService > > | create (std::unique_ptr< INavigationProvider > provider, std::unique_ptr< INavigationRequestFactory > requestFactory) |
| Validates and transfers both required owners into a task service. | |
详细描述
ITaskService adapter for asynchronous move-to requests.
- 备注
- The adapter uniquely owns its provider and request factory. Active tickets are keyed by agent, state and task identity. Destruction and stop abandon every outstanding ticket, so provider results cannot target a later task incarnation.
在文件 Navigation.h 第 81 行定义.
构造及析构函数说明
◆ ~NavigationTaskService()
|
override |
Navigation task service.
在文件 Navigation.cpp 第 27 行定义.
◆ NavigationTaskService()
|
delete |
成员函数说明
◆ create()
|
static |
Validates and transfers both required owners into a task service.
在文件 Navigation.cpp 第 17 行定义.
引用了 eve::Diagnostic::error() , 以及 eve::InvalidArgument.
◆ operator=()
|
delete |
◆ outstandingCount()
|
inlinenoexcept |
Number of live backend tickets owned by this adapter.
在文件 Navigation.h 第 105 行定义.
◆ start()
|
overridevirtual |
Starts .
Starts .
实现了 eve::npc_ai::ITaskService.
在文件 Navigation.cpp 第 38 行定义.
引用了 eve::AlreadyExists, eve::Applied, context, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::InvariantViolation, key, request, eve::Status::success() , 以及 eve::Result< T >::success().
◆ stop()
|
overridevirtualnoexcept |
◆ tick()
|
overridevirtual |
Tick.
Tick.
实现了 eve::npc_ai::ITaskService.
在文件 Navigation.cpp 第 66 行定义.
引用了 eve::npc_ai::Arrived, eve::npc_ai::Cancelled, context, eve::Diagnostic::error(), eve::npc_ai::Failed, eve::Result< T >::failure(), found, eve::InvariantViolation, key, eve::npc_ai::Moving, eve::npc_ai::Pending, eve::PreconditionViolation, eve::npc_ai::Running, eve::npc_ai::Succeeded, eve::Result< T >::success(), eve::npc_ai::Unreachable , 以及 eve::ui::WidgetDesc::value.
该类的文档由以下文件生成:
- src/modules/npc_ai/Navigation.h
- src/modules/npc_ai/Navigation.cpp
Public 成员函数 继承自