[][src]Trait diplomacy::Command

pub trait Command<L: Location>: Display {
    fn move_dest(&self) -> Option<&L>;

    fn is_move(&self) -> bool { ... }
fn is_move_to_province(&self, p: &L::Province) -> bool { ... } }

A command issued to a unit or location which uses a single concrete location type of L.

Required methods

fn move_dest(&self) -> Option<&L>

Get the destination this order moves to, or None if the order is not a move.

Loading content...

Provided methods

fn is_move(&self) -> bool

Gets whether or not the order attempts to move to another region.

fn is_move_to_province(&self, p: &L::Province) -> bool

Loading content...

Implementors

impl<L: Location> Command<L> for BuildCommand[src]

impl<L: Location> Command<L> for MainCommand<L>[src]

impl<L: Location> Command<L> for RetreatCommand<L>[src]

impl<L: Location> Command<L> for MoveCommand<L>[src]

impl<L: Location, C: Command<L>> Command<L> for Order<L, C>[src]

Loading content...