[][src]Struct freenukum::shot::Shot

pub struct Shot {
    pub is_alive: bool,
    pub direction: HorizontalDirection,
    // some fields omitted
}

Fields

is_alive: booldirection: HorizontalDirection

Implementations

impl Shot[src]

pub fn new(x: i32, y: i32, direction: HorizontalDirection) -> Self[src]

pub fn act(
    &mut self,
    hero_data: &mut HeroData,
    actors: &mut ActorsList,
    solids: &mut LevelSolids,
    tiles: &mut LevelTiles,
    actor_adder: &mut dyn ActorAdder,
    actor_message_queue: &mut ActorMessageQueue
) -> bool
[src]

Returns whether the shot is still alive after acting.

pub fn render(
    &self,
    renderer: &mut dyn Renderer,
    draw_collision_bounds: bool
) -> Result<()>
[src]

pub fn push(
    &mut self,
    hero_data: &mut HeroData,
    actors: &mut ActorsList,
    solids: &mut LevelSolids,
    tiles: &mut LevelTiles,
    offset: i32,
    actor_adder: &mut dyn ActorAdder,
    actor_message_queue: &mut ActorMessageQueue
)
[src]

pub fn set_is_alive(&mut self, is_alive: bool)[src]

Trait Implementations

impl Debug for Shot[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,