Domain-owned policy hooks used by the common settlement pipeline. 更多...
#include <Settlement.h>
Public 成员函数 | |
| virtual | ~ISettlementPolicy ()=default |
| I settlement policy. | |
| virtual eve::Result< void > | validate (SettlementContext &context)=0 |
| Validate request and target-owned state without mutating it. | |
| virtual eve::Result< void > | decide (SettlementContext &context) |
| Resolve deterministic hit, immunity, block or other supplied decisions. | |
| virtual eve::Result< void > | sourceModifiers (SettlementContext &context)=0 |
| Apply source-side modifiers such as critical or elemental power. | |
| virtual eve::Result< void > | targetMitigation (SettlementContext &context)=0 |
| Apply target mitigation such as resistance or penetration rules. | |
| virtual eve::Result< void > | armorShield (SettlementContext &context)=0 |
| Apply armor and shield policy, recording absorbed amount. | |
| virtual eve::Result< void > | clamp (SettlementContext &context)=0 |
| Configure policy-specific amount bounds for the generic clamp. | |
| virtual eve::Result< PreparedApply > | prepareApply (const SettlementContext &context)=0 |
| Build an atomic candidate mutation without publishing it. | |
| virtual eve::Result< std::vector< SettlementRequest > > | prepareTrigger (const SettlementContext &context, const SettlementResult &result) |
| Produce owning derived requests without mutating domain state. | |
详细描述
Domain-owned policy hooks used by the common settlement pipeline.
Implementations must inspect state and prepare candidates only in the calculation stages. prepareTrigger must also be side-effect free; observable trigger work is represented by the committed event and can be consumed by the owning domain after settlement returns.
在文件 Settlement.h 第 497 行定义.
构造及析构函数说明
◆ ~ISettlementPolicy()
|
virtualdefault |
I settlement policy.
成员函数说明
◆ armorShield()
|
pure virtual |
Apply armor and shield policy, recording absorbed amount.
在 eve::rpg::RPGSettlementAdapter , 以及 eve::vehicle::VehicleSettlementAdapter 内被实现.
◆ clamp()
|
pure virtual |
Configure policy-specific amount bounds for the generic clamp.
在 eve::rpg::RPGSettlementAdapter , 以及 eve::vehicle::VehicleSettlementAdapter 内被实现.
◆ decide()
|
virtual |
Resolve deterministic hit, immunity, block or other supplied decisions.
在文件 Settlement.cpp 第 582 行定义.
◆ prepareApply()
|
pure virtual |
Build an atomic candidate mutation without publishing it.
在 eve::rpg::RPGSettlementAdapter , 以及 eve::vehicle::VehicleSettlementAdapter 内被实现.
◆ prepareTrigger()
|
virtual |
Produce owning derived requests without mutating domain state.
- 返回
- Requests in deterministic execution order; empty is the common case.
被 eve::rpg::RPGSettlementAdapter 重载.
在文件 Settlement.cpp 第 584 行定义.
◆ sourceModifiers()
|
pure virtual |
Apply source-side modifiers such as critical or elemental power.
在 eve::rpg::RPGSettlementAdapter , 以及 eve::vehicle::VehicleSettlementAdapter 内被实现.
◆ targetMitigation()
|
pure virtual |
Apply target mitigation such as resistance or penetration rules.
在 eve::rpg::RPGSettlementAdapter , 以及 eve::vehicle::VehicleSettlementAdapter 内被实现.
◆ validate()
|
pure virtual |
Validate request and target-owned state without mutating it.
在 eve::rpg::RPGSettlementAdapter , 以及 eve::vehicle::VehicleSettlementAdapter 内被实现.
该类的文档由以下文件生成:
- src/modules/settlement/Settlement.h
- src/modules/settlement/Settlement.cpp