载入中...
搜索中...
未找到
eve::rts::IRTSActionExecutor类 参考abstract

Interface isolating RTS orders from the shared action runtime. 更多...

#include <RTSAction.h>

类 eve::rts::IRTSActionExecutor 继承关系图:
eve::rts::ActionAdapter

Public 成员函数

virtual ~IRTSActionExecutor ()=default
 Releases IRTSActionExecutor resources.
 
virtual Result< ActionExecutionResult > execute (Unit &unit, const OrderRecord &order, const SimulationStep &step)=0
 Execute or advance one active RTS order.
 

详细描述

Interface isolating RTS orders from the shared action runtime.

Implementations may use any action provider, but they must not copy the action lifecycle or retain a Unit pointer. The unit reference is borrowed for this call only and the injected SimulationStep is the sole time input.

在文件 RTSAction.h 第 38 行定义.

构造及析构函数说明

◆ ~IRTSActionExecutor()

virtual eve::rts::IRTSActionExecutor::~IRTSActionExecutor ( )
virtualdefault

Releases IRTSActionExecutor resources.

成员函数说明

◆ execute()

virtual Result< ActionExecutionResult > eve::rts::IRTSActionExecutor::execute ( Unit &  unit,
const OrderRecord &  order,
const SimulationStep &  step 
)
pure virtual

Execute or advance one active RTS order.

参数
unitUnit whose order is being serviced; valid for this call only.
orderOwning projection of the current generic order.
stepDeterministic simulation step supplied by the caller.
返回
Pending or Completed, or a structured provider failure.

在 eve::rts::ActionAdapter 内被实现.

被这些函数引用 eve::rts::OrderActionSystem::step().


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