载入中...
搜索中...
未找到
eve::tactics::TacticsActionExecutor类 参考final

Active-effect provider that commits move, face and wait through ActionRuntime. 更多...

#include <TacticsAction.h>

类 eve::tactics::TacticsActionExecutor 继承关系图:
eve::action::IActionEffectExecutor

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()

eve::tactics::TacticsActionExecutor::TacticsActionExecutor ( Battle &  battle)
inlineexplicitnoexcept

Bind one module-owned running battle.

在文件 TacticsAction.h 第 25 行定义.

成员函数说明

◆ prepare()

Result< std::unique_ptr< action::IActionEffectOperation > > eve::tactics::TacticsActionExecutor::prepare ( const action::ActionDefinition &  definition,
const action::ActionRequest &  request,
const sensing::TargetSet *  targets,
SimulationTick  tick 
)
overridevirtual

Prepare the active operation once without applying its effect.

参数
definitionAction definition containing effect references.
requestOriginal owning request.
targetsResolved target set, or null when no target was selected.
tickDeterministic 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.


该类的文档由以下文件生成: