载入中...
搜索中...
未找到
Presentation.h
浏览该文件的文档.
74[[nodiscard]] EVENGINE_API_DOMAINS std::string_view unitVisualStateName(UnitVisualState state) noexcept;
166 explicit PresentationProjector(std::uint64_t transientTicks = 20) : transientTicks_(transientTicks) {}
Move-only, checked operation results for the common layer.
Deterministic board values and short-root ECS entities for tactics.
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Definition StrongUint64.h:24
Projects authoritative events into bounded, revertible presentation intents.
Definition Presentation.h:163
PresentationProjector(std::uint64_t transientTicks=20)
Configure the projector; the default lifetime is used unless overridden.
Definition Presentation.h:166
Definition Interaction.cpp:13
PresentationRevertTrigger
What makes a presentation intent stop being true.
Definition Presentation.h:62
@ Never
Durable state (defeat, end of round): never taken back.
@ OnNextTurn
Clear when any unit's next turn starts.
@ OnRoundStart
Clear at the next round boundary.
std::string_view presentationRevertTriggerName(PresentationRevertTrigger trigger) noexcept
Human-readable stable spelling of a revert trigger (protocol text).
Definition Presentation.cpp:62
std::string_view unitVisualStateName(UnitVisualState state) noexcept
Human-readable stable spelling of a visual state (protocol text).
Definition Presentation.cpp:47
One accepted replay command using only persistent identities and values.
Definition TacticsTypes.h:386
One deterministic battle lifecycle event owned by Battle.
Definition TacticsTypes.h:312
Logical board coordinate independent of rendering projection.
Definition TacticsTypes.h:30
One intent together with the way to take it back.
Definition Presentation.h:136
What the projector knows about the battle beyond the event itself.
Definition Presentation.h:148
std::uint64_t transientTicks
How long a transient state stays valid, in ticks.
Definition Presentation.h:154
std::map< std::string, UnitVisualState > restingState
Resting state of each subject, used as the revert target.
Definition Presentation.h:152
One presentation instruction: what to show, where, and until when.
Definition Presentation.h:88
std::vector< Cell > path
Traversal the consumer may animate; empty when not applicable.
Definition Presentation.h:101
SubjectRef other
The other unit involved (ability target, attacker), when there is one.
Definition Presentation.h:94
std::uint64_t sequence
Battle event sequence this intent was projected from.
Definition Presentation.h:90
The explicit undo contract for one intent.
Definition Presentation.h:122
std::uint64_t sequence
Event sequence the revert belongs to, for correlation.
Definition Presentation.h:127
UnitVisualState restingState
The state to restore when the trigger fires.
Definition Presentation.h:124
constexpr bool isRevertable() const noexcept
Whether a consumer may undo the intent at all.
Definition Presentation.h:130
PresentationRevertTrigger trigger
Definition Presentation.h:125