载入中...
搜索中...
未找到
eve::weapon::ICarrierMotionFunction类 参考abstract
Synchronous custom motion strategy, invoked per proposed segment before collisions. @ownership Borrowed only during updateWithMotion; arguments are borrowed for evaluate only. 更多...
#include <CombatCarrier.h>
Public 成员函数 | |
| virtual | ~ICarrierMotionFunction ()=default |
| Destroy the caller-owned strategy. | |
| virtual Result< CarrierMotion > | evaluate (const CarrierState &before, const CarrierMotion &proposed, Duration step) const =0 |
| Return final position and velocity, or failure to abort the whole frame. | |
详细描述
Synchronous custom motion strategy, invoked per proposed segment before collisions. @ownership Borrowed only during updateWithMotion; arguments are borrowed for evaluate only.
- 备注
- Owner thread only, without locks. Do not mutate the runtime or external state from evaluate. Replay requires the same pure function and inputs; callbacks are not stored in snapshots.
在文件 CombatCarrier.h 第 384 行定义.
构造及析构函数说明
◆ ~ICarrierMotionFunction()
|
virtualdefault |
Destroy the caller-owned strategy.
成员函数说明
◆ evaluate()
|
pure virtual |
Return final position and velocity, or failure to abort the whole frame.
- 参数
-
before Pre-step state, including stable handle and age. proposed Built-in motion at the end of this step; return it to keep the result. step Proposed segment dt, clamped to remaining time, lifetime and configured maxStep.
- 返回
- Owning motion with finite coordinates and velocity.
该类的文档由以下文件生成:
- src/modules/weapon/CombatCarrier.h