载入中...
搜索中...
未找到
Damage.h
浏览该文件的文档.
145 [[nodiscard]] Result<void> configureSettlementRules(const settlement::SettlementRuleSet& rules);
148 [[nodiscard]] Result<DamageAmounts> preview(const CombatState& target, const DamageRequest& request) const;
157 [[nodiscard]] Result<DamageOutcome> apply(CombatState& target, const DamageRequest& request) const;
Renderer- and ruleset-neutral gameplay action pipeline.
Vocabulary aliases for nullable and checked borrowed references.
Move-only, checked operation results for the common layer.
Declarative, domain-neutral rules for buffs and gameplay effects.
Stable reference to a runtime gameplay subject.
DamageRuntime(const IDamageRule *rule=nullptr, HitReactionPolicy policy={})
Construct with an optional borrowed rule provider and owning policy copy.
Definition Damage.h:133
virtual Result< DamageAmounts > evaluate(const DamageRequest &request, const CombatState &target) const =0
Resolve final non-negative amounts without mutating target state.
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Definition StrongUint64.h:24
Deterministically ordered, composable settlement pipeline.
Definition Settlement.h:542
Validated immutable-style rule collection installable into pipelines.
Definition SettlementRules.h:77
Definition ActionDamageSink.cpp:9
@ Flinch
@ Stagger
@ Knockdown
DamageRuleSource
Indicates whether default amounts or an injected rule produced the outcome.
Definition Damage.h:30
@ Provider
std::optional< std::reference_wrapper< T > > OptionalRef
Optional borrowed reference; it does not extend T's lifetime.
Definition BorrowedRef.h:24
Domain-neutral, deterministic settlement pipeline.
Mutable combat state owned by the gameplay domain for one subject.
Definition Damage.h:38
Provider result prepared before the authoritative state is mutated.
Definition Damage.h:72
Complete owning audit result of one committed damage transaction.
Definition Damage.h:103
settlement::SettlementRequest settlementRequest
Exact owning request executed by the shared settlement pipeline.
Definition Damage.h:117
settlement::SettlementResult settlementResult
Complete owning settlement audit retained for replay and verification.
Definition Damage.h:119
bool critical
Presentation flag; healthDamage already includes any critical multiplier.
Definition Damage.h:65
Result< void > validate() const
Validate target, canonical gameplay-tag damage type and finite amounts.
Definition Damage.cpp:159
double availableShield
Shield balance available to this transaction; the caller commits reported consumption.
Definition Damage.h:60
double incomingDamageMultiplier
Target-owned effect multiplier applied in the target-mitigation settlement stage.
Definition Damage.h:58
SimulationTick tick
Injected simulation tick recorded by the canonical settlement.
Definition Damage.h:63
std::optional< action::ActionExecutionId > actionExecution
Definition Damage.h:53
Threshold policy for deterministic reaction selection.
Definition Damage.h:94
Result< void > validate() const
Validate finite non-negative thresholds and fraction in [0,1].
Definition Damage.cpp:179
double staggerPoiseFraction
Definition Damage.h:96
double flinchDamageThreshold
Definition Damage.h:95
Renderer/physics-neutral knockback impulse authored in world units.
Definition Damage.h:20
Domain-neutral input to one settlement operation.
Definition Settlement.h:107
Complete observable outcome of one successful settlement.
Definition Settlement.h:163