[][src]Module diplomacy::judge::retreat

Types and functions to set up, adjudicate, and report on a retreat phase.

The retreat phase happens after every main phase, and allows dislodged units to either disband or move to some other vacant location. Unlike the main phase, convoying and support are not permitted during retreats.

Structs

Context

The immutable parts of retreat phase adjudication.

Destinations

Possible destinations a unit could move to during the retreat phase, along with the status of each destination.

Outcome

The result of a retreat phase adjudication, and unit positions after the retreat phase and its preceding main phase.

Start

Data needed to adjudicate the retreat phase and to present players with useful UI for submitting retreat orders.

Enums

DestStatus
OrderOutcome

The outcome of a specific retreat phase order.