[][src]Module diplomacy::geo

This module contains the types needed to build a map of the world in Diplomacy. Terminology in this module comes from the DATC.

Modules

builder

Contains structs needed to assemble a geo::Map instance.

Structs

Border

An undirected edge between two regions in a graph of the map. Units move between regions via borders.

Map

A collection of provinces, their constituent regions, and the interconnecting borders.

Province

A controllable area of the environment.

ProvinceKey

An identifier that can be resolved to a province

Region

A space to which a unit can move. Provinces are made up of 1 or more regions.

RegionKey

An identifier that references a region.

Enums

Coast

Differentiates regions within a province.

SupplyCenter

The supply-center nature of a province. This information is used in the build phase to determine how many units a nation can sustain and where new units can be built.

Terrain

The type of environment (land, sea, coast). Armies cannot operate at sea, and fleets cannot operate on land.

Traits

Location

An addressable location in the Diplomacy world. This trait is used during order parsing and mapping to allow for orders that reference regions by name rather than by reference.

Functions

standard_map

Gets a static reference to the standard game world map. See this SVG for the source names and borders.