diplomacy/lib.rs
1//! An adjudicator for orders in the board game Diplomacy. This adjudicator will
2//! be fully compatible with the [Diplomacy Adjudicator Test Cases](https://webdiplomacy.net/doc/DATC_v3_0.html).
3
4pub mod calendar;
5pub mod geo;
6pub mod judge;
7mod nation;
8pub mod order;
9pub mod parser;
10mod time;
11mod unit;
12
13#[doc(inline)]
14pub use crate::calendar::{Calendar, Month};
15pub use crate::nation::Nation;
16#[doc(inline)]
17pub use crate::order::{Command, Order};
18pub use crate::time::{Phase, Season, Time};
19pub use crate::unit::{Unit, UnitPosition, UnitPositions, UnitType};
20
21/// Format trait for short naming of objects in orders.
22pub trait ShortName {
23 /// This method returns the short display name of the object.
24 fn short_name(&self) -> std::borrow::Cow<'_, str>;
25}