pub struct SupportMove {
pub src: ProvinceAbbr,
pub dest: ProvinceAbbr,
}Expand description
A support move order. The coast of both the source and destination is not specified; only the province.
Succeeds iff
- the supporting unit is adjacent to the destination,
- the source moves to the destination, and
- the supporting unit is not tapped by a unit other than the destination.
Fields§
§src: ProvinceAbbr§dest: ProvinceAbbrImplementations§
Source§impl SupportMove
impl SupportMove
Trait Implementations§
Source§impl Clone for SupportMove
impl Clone for SupportMove
Source§fn clone(&self) -> SupportMove
fn clone(&self) -> SupportMove
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupportMove
impl Debug for SupportMove
Source§impl<'de> Deserialize<'de> for SupportMove
impl<'de> Deserialize<'de> for SupportMove
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Order for SupportMove
impl Order for SupportMove
Source§fn deps(
&self,
map: &Map,
state: &MapState,
orders: &Orders,
this_prov: &str,
) -> HashSet<String>
fn deps( &self, map: &Map, state: &MapState, orders: &Orders, this_prov: &str, ) -> HashSet<String>
Return orders (identified by source province) that this order depends on
for resolution.
Source§fn adjudicate(
&self,
map: &Map,
state: &MapState,
orders: &Orders,
this_prov: &str,
order_status: &HashMap<String, bool>,
) -> Option<bool>
fn adjudicate( &self, map: &Map, state: &MapState, orders: &Orders, this_prov: &str, order_status: &HashMap<String, bool>, ) -> Option<bool>
Based on the given
order_status information, determine whether
this order succeeds or fails.fn as_owned(&self) -> Box<dyn Order>
Source§impl PartialEq for SupportMove
impl PartialEq for SupportMove
Source§impl Serialize for SupportMove
impl Serialize for SupportMove
impl StructuralPartialEq for SupportMove
Auto Trait Implementations§
impl Freeze for SupportMove
impl RefUnwindSafe for SupportMove
impl Send for SupportMove
impl Sync for SupportMove
impl Unpin for SupportMove
impl UnwindSafe for SupportMove
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more