载入中...
搜索中...
未找到
TurnPolicy.h
浏览该文件的文档.
Move-only, checked operation results for the common layer.
Deterministic board values and short-root ECS entities for tactics.
Battle short-root and authoritative owner of board and turn state.
Definition TacticsTypes.h:444
One deterministic unit-activation ordering strategy.
Definition TurnPolicy.h:103
virtual std::string_view id() const noexcept=0
Return the stable protocol id this policy is registered under.
Registry of turn policies keyed by stable id.
Definition TurnPolicy.h:145
Definition Interaction.cpp:13
@ Equivalent
Both compare equal; the caller decides by canonical order.
The charge rule a policy declares for round scheduling.
Definition TurnPolicy.h:63
int threshold
Charge a unit must reach to be scheduled; 0 means "always ready".
Definition TurnPolicy.h:69
constexpr bool isChargeBased() const noexcept
Whether this model schedules by charge at all.
Definition TurnPolicy.h:72
int initiativeGain
Multiplier applied to a unit's initiative to get its per-round charge gain.
Definition TurnPolicy.h:65
The scheduling projection a policy is allowed to compare.
Definition TurnPolicy.h:35
std::size_t sideIndex
Index of the unit's side inside the battle's side list.
Definition TurnPolicy.h:39