Input-phase operations over a ClimbingIntent component. 更多...
#include <ClimbingInput.h>
静态 Public 成员函数 | |
| static eve::Result< void > | submit (ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick pressedTick, std::uint64_t bufferTicks) |
| Queue one edge command with expiry derived from an exact tick budget. | |
| static eve::Result< void > | submit (ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick pressedTick, const ClimbingProfileDefinition &profile) |
| Queue one edge command using the authoritative profile input window. | |
| static std::size_t | prune (ClimbingIntent &intent, eve::SimulationTick currentTick) noexcept |
| Remove expired and already-consumed records; returns the number removed. | |
| static eve::Result< std::optional< BufferedClimbingCommand > > | consume (ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick currentTick, ClimbingExecutionId executionId) |
| Atomically mark the oldest eligible command consumed by one committed execution. | |
| static std::optional< BufferedClimbingCommand > | peek (const ClimbingIntent &intent, ClimbingCommand command, eve::SimulationTick currentTick) noexcept |
| Observe the oldest eligible command without consuming or pruning intent. | |
| static ClimbingCoyoteState | coyoteWindowState (eve::SimulationTick currentTick, eve::SimulationTick lastGroundedTick, std::uint64_t coyoteTicks) noexcept |
| Evaluate a grounded grace window without reading wall clock. | |
静态 Public 属性 | |
| static constexpr std::size_t | MaxBufferedCommands = 16 |
| Hard safety bound preventing an untrusted producer from growing intent indefinitely. | |
详细描述
Input-phase operations over a ClimbingIntent component.
Structural mutation: none. Read service: injected SimulationTick only. The system invokes no callbacks and produces bit-exact results for the same command stream.
在文件 ClimbingInput.h 第 52 行定义.
成员函数说明
◆ consume()
|
static |
Atomically mark the oldest eligible command consumed by one committed execution.
- 返回
- Owning consumed record, or a successful empty optional when no eligible command exists.
在文件 ClimbingInput.cpp 第 57 行定义.
引用了 eve::Applied, eve::climbing::ClimbingIntent::commands, eve::Diagnostic::error(), executionId, found, eve::InvalidArgument, eve::detail::StrongUint64< Tag >::isZero(), eve::NoOp, prune() , 以及 eve::Status::success().
被这些函数引用 eve::climbing::ClimbingSelectionSystem::tryStart() , 以及 eve::climbing::ClimbingServiceSelectionSystem::tryStart().
◆ coyoteWindowState()
|
staticnoexcept |
Evaluate a grounded grace window without reading wall clock.
在文件 ClimbingInput.cpp 第 87 行定义.
引用了 eve::climbing::Eligible , 以及 eve::climbing::Outside.
被这些函数引用 eve::climbing::ClimbingSelectionSystem::tryStart() , 以及 eve::climbing::ClimbingServiceSelectionSystem::tryStart().
◆ peek()
|
staticnoexcept |
Observe the oldest eligible command without consuming or pruning intent.
在文件 ClimbingInput.cpp 第 78 行定义.
引用了 found.
被这些函数引用 eve::climbing::ClimbingEcsSelectionSystem::step(), eve::climbing::ClimbingSelectionSystem::tryStart() , 以及 eve::climbing::ClimbingServiceSelectionSystem::tryStart().
◆ prune()
|
staticnoexcept |
Remove expired and already-consumed records; returns the number removed.
在文件 ClimbingInput.cpp 第 49 行定义.
◆ submit() [1/2]
|
static |
Queue one edge command using the authoritative profile input window.
在文件 ClimbingInput.cpp 第 43 行定义.
引用了 eve::climbing::ClimbingProfileDefinition::inputBufferTicks , 以及 submit().
◆ submit() [2/2]
|
static |
Queue one edge command with expiry derived from an exact tick budget.
在文件 ClimbingInput.cpp 第 17 行定义.
引用了 eve::Applied, eve::climbing::ClimbingIntent::commands, eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, MaxBufferedCommands, eve::PreconditionViolation, prune(), eve::Status::success(), eve::Result< T >::success(), eve::detail::StrongUint64< Tag >::value() , 以及 eve::detail::StrongUint64< detail::ClimbingExecutionIdTag >::zero().
被这些函数引用 submit().
类成员变量说明
◆ MaxBufferedCommands
|
staticconstexpr |
Hard safety bound preventing an untrusted producer from growing intent indefinitely.
在文件 ClimbingInput.h 第 55 行定义.
被这些函数引用 submit().
该类的文档由以下文件生成:
- src/modules/climbing/ClimbingInput.h
- src/modules/climbing/ClimbingInput.cpp