Expand description
PhaseType — turn phases/steps.
Mirrors Java’s PhaseType.java.
The core enum lives in forge_foundation::PhaseType; this module
re-exports it and adds phase-module-specific helper functions.
Enums§
- Phase
Type - Turn phases/steps. Mirrors Java
PhaseType.
Functions§
- get_
next - Get the next phase, optionally with reversed phase order (Topsy Turvy).
Mirrors Java’s
PhaseType.getNext(current, isTopsy). - is_last
- Returns true if this is the last phase in the turn.
Mirrors Java’s
PhaseType.isLast(). - parse_
range - Parse a range of phases from a comma-separated string.
Supports “Phase1->Phase2” range syntax and “Main” alias for Main1+Main2.
Mirrors Java’s
PhaseType.parseRange(). - phase_
group_ index - Phase group index — maps each phase to its parent group.
Mirrors Java’s
PHASE_INDEXmap. - smart_
value_ of - Parse a phase type from a string, matching by script name or enum name.
Mirrors Java’s
PhaseType.smartValueOf().