Crate radip

Source
Expand description

DATC-compliant* diplomacy adjucator.

Use adjudicate to adjudicate a movement phase, and utils::apply_adjudication to update the map. This crate does not support build phases, as those are fairly easy to implement on your own, and build phases may differ for different variants.

Modules§

base
Orders present in the default version of the game. These implementations follow Kruijswijk’s specifications in his excellent article on adjudication.
core
Provides the Core order type, as found in some variants.
utils
Auxiliary functionality not related to adjudicating a movement phase.

Structs§

Map
A variant map.
MapState
Stores the units present on a diplomacy board.
Province
Province metadata stored in a Map.

Enums§

Unit

Traits§

AsAny
Helper trait.
Order
Represents an order object.

Functions§

adjudicate
Adjudicate a movement phase.

Type Aliases§

ArmyLoc
An army location.
FleetLoc
A fleet location. The first element of the tuple is the province, the second is the coast.
Orders
Map of orders. Each province occupied by a unit have an associated order.
ProvinceAbbr
Abbreviation for a province (e.g. NTH, Lvn).