[][src]Struct rust_warrior::floor::Floor

pub struct Floor {
    pub width: usize,
    pub height: usize,
    pub warrior: (i32, i32),
    pub stairs: (i32, i32),
    pub sludge: Option<(i32, i32)>,
}

Fields

width: usizeheight: usizewarrior: (i32, i32)stairs: (i32, i32)sludge: Option<(i32, i32)>

Methods

impl Floor[src]

pub fn load(level: usize) -> Floor[src]

pub fn exists(level: usize) -> bool[src]

pub fn draw(&self)[src]

Trait Implementations

impl Clone for Floor[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Floor[src]

impl Debug for Floor[src]

Auto Trait Implementations

impl Sync for Floor

impl Send for Floor

impl Unpin for Floor

impl RefUnwindSafe for Floor

impl UnwindSafe for Floor

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Any for T where
    T: Any

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