Owner-thread coordinator that welds combat runtimes for one arena tick. 更多...
#include <CombatLoop.h>
Public 成员函数 | |
| void | setCharacters (CombatCharacterRuntime &characters) noexcept |
| Sets the characters. | |
| void | setMelee (MeleeHitRuntime &melee) noexcept |
| Sets the melee. | |
| void | setWindows (const CombatActionWindowState *windows) noexcept |
| Sets the windows. | |
| void | setGuards (const GuardWindowState *guards) noexcept |
| Sets the guards. | |
| void | setFeel (HitFeelRuntime *feel) noexcept |
| Sets the feel. | |
| void | setTargets (CombatTargetRuntime *targets) noexcept |
| Sets the targets. | |
| void | setCameraFocus (SubjectRef player) noexcept |
| Sets the camera focus. | |
| void | setDamageStates (std::map< std::string, CombatState, std::less<> > *states) noexcept |
| Borrow the map of CombatState values mutated by melee hits. | |
| void | setCancelResolver (CombatCancelResolver *cancels) noexcept |
| Sets the cancel resolver. | |
| void | setCancelSubject (SubjectRef subject) noexcept |
| Sets the cancel subject. | |
| void | setCancelAbility (LogicalId ability) noexcept |
| Sets the cancel ability. | |
| void | setEnemyAI (CombatEnemyIntentSource *enemies) noexcept |
| Sets the enemy ai. | |
| Result< CombatLoopFrame > | advance (const SimulationStep &step) |
| Advance every wired runtime with the supplied deterministic step. | |
详细描述
Owner-thread coordinator that welds combat runtimes for one arena tick.
Each collaborator remains the unique owner of its facts. This object only sequences optional enemy steering / cancel resolve → warp → character → hurtbox pose → melee → guard/invuln/damage/feel/reaction → camera framing. It does not introduce a CombatActor root.
在文件 CombatLoop.h 第 53 行定义.
成员函数说明
◆ advance()
| Result< CombatLoopFrame > eve::combat::CombatLoopRuntime::advance | ( | const SimulationStep & | step | ) |
Advance every wired runtime with the supplied deterministic step.
- 备注
- Frozen (hitstop) subjects skip character integration for this tick.
在文件 CombatLoop.cpp 第 25 行定义.
引用了 eve::combat::CombatCharacterRuntime::advance(), eve::combat::CombatWarpRequest::attacker, eve::combat::Attacking, eve::combat::CombatLoopFrame::cancels, eve::Conflict, eve::combat::CombatLoopFrame::enemySteering, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::LogicalId::format(), eve::combat::HitFeelRuntime::isFrozen(), eve::SubjectRef::isValid(), eve::combat::CombatLoopFrame::locomotion, eve::combat::CombatEnemyIntentSource::nextSteering(), eve::NotFound, request, eve::combat::CombatCancelResolver::resolve(), eve::combat::CombatCharacterRuntime::setFacing(), eve::combat::MeleeHitRuntime::setHurtboxPose(), eve::combat::CombatCharacterRuntime::setMoveIntent(), eve::combat::CombatEnemyIntentSource::setPosition(), eve::combat::CombatCharacterRuntime::setRootMotionDelta(), eve::combat::CombatCharacterRuntime::setTimeFrozen(), eve::combat::CombatMotionWarp::solve(), state, eve::combat::CombatTargetRuntime::state(), eve::combat::CombatCharacterRuntime::state(), eve::combat::CombatCharacterRuntime::states(), step, eve::combat::CombatCancelResolveRequest::subject, target, eve::combat::CombatLoopFrame::tick , 以及 warp.
◆ setCameraFocus()
|
inlinenoexcept |
Sets the camera focus.
在文件 CombatLoop.h 第 68 行定义.
◆ setCancelAbility()
|
inlinenoexcept |
Sets the cancel ability.
在文件 CombatLoop.h 第 76 行定义.
◆ setCancelResolver()
|
inlinenoexcept |
Sets the cancel resolver.
在文件 CombatLoop.h 第 72 行定义.
◆ setCancelSubject()
|
inlinenoexcept |
◆ setCharacters()
|
inlinenoexcept |
Sets the characters.
在文件 CombatLoop.h 第 56 行定义.
◆ setDamageStates()
|
inlinenoexcept |
Borrow the map of CombatState values mutated by melee hits.
在文件 CombatLoop.h 第 70 行定义.
◆ setEnemyAI()
|
inlinenoexcept |
Sets the enemy ai.
在文件 CombatLoop.h 第 78 行定义.
◆ setFeel()
|
inlinenoexcept |
Sets the feel.
在文件 CombatLoop.h 第 64 行定义.
◆ setGuards()
|
inlinenoexcept |
Sets the guards.
在文件 CombatLoop.h 第 62 行定义.
◆ setMelee()
|
inlinenoexcept |
Sets the melee.
在文件 CombatLoop.h 第 58 行定义.
◆ setTargets()
|
inlinenoexcept |
Sets the targets.
在文件 CombatLoop.h 第 66 行定义.
◆ setWindows()
|
inlinenoexcept |
Sets the windows.
在文件 CombatLoop.h 第 60 行定义.
该类的文档由以下文件生成:
- src/modules/combat/CombatLoop.h
- src/modules/combat/CombatLoop.cpp