[−][src]Struct diplomacy::judge::build::ResolverContext
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]
world: &'a Map,
last_time: &'a HashMap<ProvinceKey, Nation>,
this_time: &'a W,
orders: Vec<&'a MappedBuildOrder>
) -> Self
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,
W: RefUnwindSafe,
impl<'a, W> Send for ResolverContext<'a, W> where
W: Sync,
W: Sync,
impl<'a, W> Sync for ResolverContext<'a, W> where
W: Sync,
W: Sync,
impl<'a, W> Unpin for ResolverContext<'a, W>
impl<'a, W> UnwindSafe for ResolverContext<'a, W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,