#[repr(C)]pub struct SUnitMoveFailedEvent {
pub unit: c_int,
}
Expand description
This AI event is sent when a unit received a move command and is not able to fullfill it. Reasons for this are:
- The unit is not able to move
- The path to the target location is blocked
- The unit can not move on the terain of the target location (for example, the target is on land, and the unit is a ship)
Fields§
§unit: c_int
Trait Implementations§
Source§impl Clone for SUnitMoveFailedEvent
impl Clone for SUnitMoveFailedEvent
Source§fn clone(&self) -> SUnitMoveFailedEvent
fn clone(&self) -> SUnitMoveFailedEvent
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 SUnitMoveFailedEvent
impl Debug for SUnitMoveFailedEvent
impl Copy for SUnitMoveFailedEvent
Auto Trait Implementations§
impl Freeze for SUnitMoveFailedEvent
impl RefUnwindSafe for SUnitMoveFailedEvent
impl Send for SUnitMoveFailedEvent
impl Sync for SUnitMoveFailedEvent
impl Unpin for SUnitMoveFailedEvent
impl UnwindSafe for SUnitMoveFailedEvent
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