Active-effect provider that commits move, face and wait through ActionRuntime. 更多...
#include <TacticsAction.h>
Public 成员函数 | |
| TacticsActionExecutor (Battle &battle) noexcept | |
| Bind one module-owned running battle. | |
| Result< std::unique_ptr< action::IActionEffectOperation > > | prepare (const action::ActionDefinition &definition, const action::ActionRequest &request, const sensing::TargetSet *targets, SimulationTick tick) override |
| Prepare the active operation once without applying its effect. | |
Public 成员函数 继承自 eve::action::IActionEffectExecutor | |
| virtual | ~IActionEffectExecutor ()=default |
| Releases IActionEffectExecutor resources. | |
详细描述
Active-effect provider that commits move, face and wait through ActionRuntime.
The bound Battle is borrowed and must outlive this provider and every ActionRuntime using it. Preparation validates movement without mutation; ActionRuntime calls commit synchronously on the same simulation thread. The provider retains no unit pointer and invokes no script or external callback.
在文件 TacticsAction.h 第 22 行定义.
构造及析构函数说明
◆ TacticsActionExecutor()
|
inlineexplicitnoexcept |
Bind one module-owned running battle.
在文件 TacticsAction.h 第 25 行定义.
成员函数说明
◆ prepare()
|
overridevirtual |
Prepare the active operation once without applying its effect.
- 参数
-
definition Action definition containing effect references. request Original owning request. targets Resolved target set, or null when no target was selected. tick Deterministic simulation tick of the Active transition.
- 返回
- A move-only staged operation or a structured preparation failure.
Prepare.
实现了 eve::action::IActionEffectExecutor.
在文件 TacticsAction.cpp 第 126 行定义.
引用了 eve::Applied, eve::Conflict, eve::Diagnostic::error(), facing, eve::InvalidArgument, layer, eve::LogicalId::parse(), eve::tactics::BattleSystem::previewFace(), eve::tactics::BattleSystem::previewMove(), eve::tactics::BattleSystem::previewWait(), request, eve::StaleHandle, eve::Status::success(), tick, unit, x , 以及 y.
该类的文档由以下文件生成:
- src/modules/tactics/TacticsAction.h
- src/modules/tactics/TacticsAction.cpp
Public 成员函数 继承自