类 | |
| class | Condition |
| Immutable condition AST node. 更多... | |
| class | ConditionResult |
| Explain one condition evaluation in a UI- and log-friendly form. 更多... | |
| class | Decision |
| Script factory for independent decision contexts. 更多... | |
| class | DecisionContext |
| Data-oriented blackboard, FSM, utility and influence-map workspace. 更多... | |
| struct | DecisionContextHandleTag |
| Handle domain for module-owned decision contexts. 更多... | |
| class | EvaluationContext |
| Read-only state boundary used by every condition evaluation. 更多... | |
| struct | ScriptConditionDeclaration |
| Metadata a script policy must declare before it is used by a condition. 更多... | |
类型定义 | |
| using | DecisionContextHandleRef = eve::script::RuntimeHandleRef< DecisionContextHandleTag > |
| Generation- and module-epoch-qualified decision context reference. | |
枚举 | |
| enum class | ConditionKind : std::uint8_t { All , Any , Not , Compare , HasTag , HasAttribute , HasResource , StateEquals , AuthorityCheck , PolicyCall } |
| Node kind in the side-effect-free condition AST. 更多... | |
| enum class | CompareOperator : std::uint8_t { Equal , NotEqual , Less , LessEqual , Greater , GreaterEqual } |
| Scalar comparison used by a Compare node. 更多... | |
| enum class | DeterminismLevel : std::uint8_t { BitExact , TickDeterministic , ToleranceBounded , ExplicitlyNondeterministic } |
| Determinism contract declared by a script-backed condition policy. 更多... | |
| enum class | ConditionReasonCode : std::uint32_t { Passed = 0 , ChildFailed = 1 , NoChildPassed = 2 , Negated = 3 , MissingValue = 4 , ValueMismatch = 5 , TagMissing = 6 , TagUnavailable = 7 , AttributeMissing = 8 , ResourceMissing = 9 , StateMissing = 10 , StateMismatch = 11 , AuthorityDenied = 12 , AuthorityUnavailable = 13 , PolicyRejected = 14 , PolicyUnavailable = 15 , InvalidCondition = 16 } |
| Stable machine-readable explanation code for a condition outcome. 更多... | |
函数 | |
| const char * | conditionReasonCodeName (ConditionReasonCode code) noexcept |
| Return the stable lowercase spelling of a condition reason code. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used. | |
| const char * | conditionKindName (ConditionKind kind) noexcept |
| Return the stable lowercase spelling of a condition node kind. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used. | |
| const char * | compareOperatorName (CompareOperator op) noexcept |
| Return the stable lowercase spelling of a comparison operator. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used. | |
| Module_IMPL (Decision, new Decision()) | |
类型定义说明
◆ DecisionContextHandleRef
| using eve::decision::DecisionContextHandleRef = typedef eve::script::RuntimeHandleRef<DecisionContextHandleTag> |
Generation- and module-epoch-qualified decision context reference.
在文件 Decision.h 第 20 行定义.
枚举类型说明
◆ CompareOperator
|
strong |
Scalar comparison used by a Compare node.
| 枚举值 | |
|---|---|
| Equal | |
| NotEqual | |
| Less | |
| LessEqual | |
| Greater | |
| GreaterEqual | |
在文件 Condition.h 第 36 行定义.
◆ ConditionKind
|
strong |
Node kind in the side-effect-free condition AST.
| 枚举值 | |
|---|---|
| All | |
| Any | |
| Not | |
| Compare | |
| HasTag | |
| HasAttribute | |
| HasResource | |
| StateEquals | |
| AuthorityCheck | |
| PolicyCall | |
在文件 Condition.h 第 22 行定义.
◆ ConditionReasonCode
|
strong |
Stable machine-readable explanation code for a condition outcome.
在文件 Condition.h 第 74 行定义.
◆ DeterminismLevel
|
strong |
Determinism contract declared by a script-backed condition policy.
| 枚举值 | |
|---|---|
| BitExact | Same inputs produce the same bits without an external clock. |
| TickDeterministic | Deterministic when evaluated at the injected simulation tick. |
| ToleranceBounded | Results may vary within a documented numeric tolerance. |
| ExplicitlyNondeterministic | Result is intentionally not suitable for replay or lockstep. |
在文件 Condition.h 第 46 行定义.
函数说明
◆ compareOperatorName()
|
noexcept |
Return the stable lowercase spelling of a comparison operator. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used.
在文件 Condition.cpp 第 121 行定义.
引用了 Equal, Greater, GreaterEqual, Less, LessEqual , 以及 NotEqual.
被这些函数引用 eve::rpg::encodeSkillCondition().
◆ conditionKindName()
|
noexcept |
Return the stable lowercase spelling of a condition node kind. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used.
在文件 Condition.cpp 第 105 行定义.
引用了 All, Any, AuthorityCheck, Compare, HasAttribute, HasResource, HasTag, kind, Not, PolicyCall , 以及 StateEquals.
被这些函数引用 eve::rpg::encodeSkillCondition().
◆ conditionReasonCodeName()
|
noexcept |
Return the stable lowercase spelling of a condition reason code. @ownership Borrowed process-static text; callers must not free or modify it. @nullable Never null; unknown numeric values use the stable unknown-value literal. @lifetime Process lifetime. @thread Thread-safe and reentrant; no mutable state or callbacks are used.
在文件 Condition.cpp 第 82 行定义.
引用了 AttributeMissing, AuthorityDenied, AuthorityUnavailable, ChildFailed, code, InvalidCondition, MissingValue, Negated, NoChildPassed, Passed, PolicyRejected, PolicyUnavailable, ResourceMissing, StateMismatch, StateMissing, TagMissing, TagUnavailable , 以及 ValueMismatch.
被这些函数引用 eve::rpg::SkillSystem::canCast(), eve::dialogue::DialogueFlow::configureIntegration() , 以及 eve::card::CardPlayPaymentAdapter::play().
◆ Module_IMPL()
| eve::decision::Module_IMPL | ( | Decision | , |
| new | Decision() | ||
| ) |