[][src]Struct diplomacy::judge::build::ResolverContext

pub struct ResolverContext<'a, W: WorldState> { /* fields omitted */ }

The immutable pieces of a build-phase order resolution

Implementations

impl<'a, W: WorldState> ResolverContext<'a, W>[src]

pub fn new(
    world: &'a Map,
    last_time: &'a HashMap<ProvinceKey, Nation>,
    this_time: &'a W,
    orders: Vec<&'a MappedBuildOrder>
) -> Self
[src]

Create a new context for resolution.

First Winter

The first build phase of the game should pass the initial supply center ownerships to last_time to ensure the resolver knows never-since-occupied home SCs belong to their home power.

pub fn current_owner(&'a self, province: &ProvinceKey) -> Option<&'a Nation>[src]

pub fn resolve(&'a self) -> Outcome<'a>[src]

Auto Trait Implementations

impl<'a, W> RefUnwindSafe for ResolverContext<'a, W> where
    W: RefUnwindSafe

impl<'a, W> Send for ResolverContext<'a, W> where
    W: Sync

impl<'a, W> Sync for ResolverContext<'a, W> where
    W: Sync

impl<'a, W> Unpin for ResolverContext<'a, W>

impl<'a, W> UnwindSafe for ResolverContext<'a, W> where
    W: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.