pub enum FighterStatus {
Moving,
Stalled,
Attacking,
}Expand description
The current status of a fighter on the battlefield.
This determines both the fighter’s behavior and rendering:
Moving: Fighter is actively moving toward cursor (rendered as sphere)Stalled: Fighter wants to move but is blocked by ally (rendered as cube)Attacking: Fighter is blocked by enemy and attacking (rendered as cone)
Variants§
Moving
Fighter is actively moving toward the cursor.
Stalled
Fighter wants to move but is blocked by an ally.
Attacking
Fighter is blocked by an enemy and attacking.
Trait Implementations§
Source§impl Clone for FighterStatus
impl Clone for FighterStatus
Source§fn clone(&self) -> FighterStatus
fn clone(&self) -> FighterStatus
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FighterStatus
impl Debug for FighterStatus
Source§impl Default for FighterStatus
impl Default for FighterStatus
Source§fn default() -> FighterStatus
fn default() -> FighterStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for FighterStatus
impl PartialEq for FighterStatus
impl Copy for FighterStatus
impl Eq for FighterStatus
impl StructuralPartialEq for FighterStatus
Auto Trait Implementations§
impl Freeze for FighterStatus
impl RefUnwindSafe for FighterStatus
impl Send for FighterStatus
impl Sync for FighterStatus
impl Unpin for FighterStatus
impl UnwindSafe for FighterStatus
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)