载入中...
搜索中...
未找到
eve::action::IActionEffectExecutor类 参考abstract

Active-phase effect/operation preparation port. 更多...

#include <Action.h>

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

Public 成员函数

virtual ~IActionEffectExecutor ()=default
 Releases IActionEffectExecutor resources.
 
virtual Result< std::unique_ptr< IActionEffectOperation > > prepare (const ActionDefinition &definition, const ActionRequest &request, const sensing::TargetSet *targets, SimulationTick tick)=0
 Prepare the active operation once without applying its effect.
 

详细描述

Active-phase effect/operation preparation port.

Effect IDs are resolved by the provider against the canonical effects registry/container. A Weapon adapter can use the same port for its Active fire operation while preserving weapon-specific state in the weapon module. targets is borrowed for this call only. The returned unique_ptr is the sole owner of staged external state until ActionRuntime commits or rolls it back.

在文件 Action.h 第 331 行定义.

构造及析构函数说明

◆ ~IActionEffectExecutor()

virtual eve::action::IActionEffectExecutor::~IActionEffectExecutor ( )
virtualdefault

Releases IActionEffectExecutor resources.

成员函数说明

◆ prepare()

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

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.

在 eve::tactics::TacticsActionExecutor 内被实现.


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