[][src]Struct freenukum::level::LevelData

pub struct LevelData {
    pub tiles: LevelTiles,
    pub solids: LevelSolids,
    pub do_play: bool,
    pub level_passed: bool,
    pub actors: ActorsList,
    pub animated_frames_since_last_act: usize,
    pub shots: ShotList,
}

Fields

tiles: LevelTilessolids: LevelSolidsdo_play: boollevel_passed: boolactors: ActorsListanimated_frames_since_last_act: usizeshots: ShotList

Implementations

impl LevelData[src]

pub fn load<R: Read>(
    reader: &mut R,
    hero: &mut HeroData,
    raw: &mut Option<&mut LevelRaw>
) -> Result<Self>
[src]

pub fn hero_interact_start(
    &mut self,
    hero: &mut HeroData,
    info_message_queue: &mut InfoMessageQueue,
    actor_message_queue: &mut ActorMessageQueue
)
[src]

pub fn hero_interact_end(&mut self, hero: &mut HeroData)[src]

pub fn animated_frames_since_last_act_increase(&mut self) -> usize[src]

pub fn render(
    &mut self,
    renderer: &mut dyn Renderer,
    hero: &mut HeroData,
    draw_collision_bounds: bool,
    srcrect: Rect,
    backdrop1: Option<&Surface<'_>>,
    _backdrop2: Option<&Surface<'_>>
) -> Result<()>
[src]

pub fn act(
    &mut self,
    hero_data: &mut HeroData,
    actor_queue: &mut ActorQueue,
    actor_message_queue: &mut ActorMessageQueue
) -> Result<()>
[src]

pub fn fire_shot(
    &mut self,
    hero: &mut HeroData,
    actor_adder: &mut dyn ActorAdder
)
[src]

Trait Implementations

impl Debug for LevelData[src]

Auto Trait Implementations

impl !RefUnwindSafe for LevelData

impl !Send for LevelData

impl !Sync for LevelData

impl Unpin for LevelData

impl !UnwindSafe for LevelData

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>,