[−][src]Struct freenukum::level::LevelData
Fields
tiles: LevelTiles
solids: LevelSolids
do_play: bool
level_passed: bool
actors: ActorsList
animated_frames_since_last_act: usize
shots: ShotList
Implementations
impl LevelData
[src]
pub fn load<R: Read>(
reader: &mut R,
hero: &mut HeroData,
raw: &mut Option<&mut LevelRaw>
) -> Result<Self>
[src]
reader: &mut R,
hero: &mut HeroData,
raw: &mut Option<&mut LevelRaw>
) -> Result<Self>
pub fn hero_interact_start(
&mut self,
hero: &mut HeroData,
info_message_queue: &mut InfoMessageQueue,
actor_message_queue: &mut ActorMessageQueue
)
[src]
&mut self,
hero: &mut HeroData,
info_message_queue: &mut InfoMessageQueue,
actor_message_queue: &mut ActorMessageQueue
)
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]
&mut self,
renderer: &mut dyn Renderer,
hero: &mut HeroData,
draw_collision_bounds: bool,
srcrect: Rect,
backdrop1: Option<&Surface<'_>>,
_backdrop2: Option<&Surface<'_>>
) -> Result<()>
pub fn act(
&mut self,
hero_data: &mut HeroData,
actor_queue: &mut ActorQueue,
actor_message_queue: &mut ActorMessageQueue
) -> Result<()>
[src]
&mut self,
hero_data: &mut HeroData,
actor_queue: &mut ActorQueue,
actor_message_queue: &mut ActorMessageQueue
) -> Result<()>
pub fn fire_shot(
&mut self,
hero: &mut HeroData,
actor_adder: &mut dyn ActorAdder
)
[src]
&mut self,
hero: &mut HeroData,
actor_adder: &mut dyn ActorAdder
)
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,