1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
//! An adjudicator for orders in the board game Diplomacy. This adjudicator will
//! be fully compatible with the [Diplomacy Adjudicator Test Cases](http://web.inter.nl.net/users/L.B.Kruijswijk/).

mod game;
pub mod geo;
pub mod judge;
mod nation;
pub mod order;
pub mod parser;
mod unit;

pub use crate::nation::Nation;
#[doc(inline)]
pub use crate::order::{Command, Order};
pub use crate::unit::{Unit, UnitPosition, UnitPositions, UnitType};

/// Format trait for short naming of objects in orders.
pub trait ShortName {
    /// This method returns the short display name of the object.
    fn short_name(&self) -> std::borrow::Cow<'_, str>;
}