载入中...
搜索中...
未找到
eve::combat::HitFeelRuntime类 参考

Owner-thread hitstop/hitstun coordinator. 更多...

#include <HitFeel.h>

Public 成员函数

Result< void > apply (HitFeelRequest request)
 Apply one validated feel request; overlapping windows take the max remaining.
 
Result< void > applyFromOutcome (const DamageOutcome &outcome)
 Derive a feel request from a damage outcome using fixed reaction tables.
 
Result< HitFeelAdvance > advance (const SimulationStep &step)
 Advance remaining timers with the supplied deterministic step.
 
HitFeelState state (SubjectRef subject) const
 Return an owning snapshot, or empty defaults when the subject has no feel state.
 
bool isFrozen (SubjectRef subject) const noexcept
 Whether the subject currently has positive hitstop remaining.
 
bool isStunned (SubjectRef subject) const noexcept
 Whether the subject currently has positive hitstun remaining.
 
std::size_t activeCount () const noexcept
 Number of subjects with any remaining feel timer.
 

详细描述

Owner-thread hitstop/hitstun coordinator.

Durations use injected simulation time only. While hitstop remains, callers should treat the subject as time-frozen for animation and hitbox sampling.

在文件 HitFeel.h 第 61 行定义.

成员函数说明

◆ activeCount()

std::size_t eve::combat::HitFeelRuntime::activeCount ( ) const
inlinenoexcept

Number of subjects with any remaining feel timer.

在文件 HitFeel.h 第 76 行定义.

◆ advance()

◆ apply()

Result< void > eve::combat::HitFeelRuntime::apply ( HitFeelRequest  request)

Apply one validated feel request; overlapping windows take the max remaining.

在文件 HitFeel.cpp 第 25 行定义.

引用了 eve::Applied, request, eve::Status::success(), eve::Result< T >::success(), valid , 以及 eve::Duration::zero().

被这些函数引用 applyFromOutcome().

◆ applyFromOutcome()

Result< void > eve::combat::HitFeelRuntime::applyFromOutcome ( const DamageOutcome &  outcome)

◆ isFrozen()

bool eve::combat::HitFeelRuntime::isFrozen ( SubjectRef  subject) const
noexcept

Whether the subject currently has positive hitstop remaining.

在文件 HitFeel.cpp 第 121 行定义.

引用了 found, subject , 以及 eve::Duration::zero().

被这些函数引用 eve::combat::CombatLoopRuntime::advance().

◆ isStunned()

bool eve::combat::HitFeelRuntime::isStunned ( SubjectRef  subject) const
noexcept

Whether the subject currently has positive hitstun remaining.

在文件 HitFeel.cpp 第 126 行定义.

引用了 found, subject , 以及 eve::Duration::zero().

◆ state()

HitFeelState eve::combat::HitFeelRuntime::state ( SubjectRef  subject) const

Return an owning snapshot, or empty defaults when the subject has no feel state.

在文件 HitFeel.cpp 第 115 行定义.

引用了 found, subject , 以及 eve::Duration::zero().

被这些函数引用 advance().


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