[][src]Struct rust_warrior::engine::systems::shooter::ShooterSystem

pub struct ShooterSystem {
    pub name: String,
}

This system acts as an enemy AI, attacking the player if an archer or wizard exists and can attack the Warrior. The difference from the sludge is that the archer's arrows (and wizard's wand) can reach the warrior up to three spaces away, as long as there is no other enemy in the way.

Fields

name: String

Implementations

impl ShooterSystem[src]

pub fn new(name: String) -> ShooterSystem[src]

Trait Implementations

impl<'a> System<'a> for ShooterSystem[src]

type SystemData = WriteStorage<'a, UnitComponent>

The resource bundle required to execute this system. Read more

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

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

impl<T> Resource for T where
    T: Any + Send + Sync

impl<'a, T> RunNow<'a> for T where
    T: System<'a>, 

impl<'a, T> RunWithPool<'a> for T where
    T: System<'a>, 

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.