Skip to main content

Module phase

Module phase 

Source
Expand description

Phase module — turn structure, phase handling, and untap logic.

Mirrors Java’s forge.game.phase package.

Re-exports§

pub use extra_phase::ExtraPhase;
pub use extra_turn::ExtraTurn;
pub use phase_handler::PhaseHandler;

Modules§

extra_phase
ExtraPhase — stores an extra phase inserted into the turn.
extra_turn
ExtraTurn — stores information about extra turns.
phase_handler
PhaseHandler — manages game turn and phase progression.
phase_type
PhaseType — turn phases/steps.
untap
Untap — handles untap step logic.

Structs§

Phase
Phase instance — stores commands that execute at phase boundaries.
TurnState
Tracks the current turn state: whose turn, which phase, turn number.

Enums§

PhaseCommand
A phase command — a deferred action to execute at a phase boundary. Mirrors Java’s GameCommand callbacks stored in Phase.