[−][src]Struct freenukum::hero::HeroData
Fields
position: Position
score: Score
health: Health
firepower: Firepower
inventory: Inventory
fetched_letter_state: FetchedLetterState
immunity: Immunity
direction: HorizontalDirection
motion: Motion
is_shooting: bool
gets_hurt: bool
Implementations
impl HeroData
[src]
pub fn new() -> Self
[src]
pub fn reset(&mut self)
[src]
pub fn reset_for_level(&mut self)
[src]
pub fn next_frame(&mut self)
[src]
pub fn render(
&self,
renderer: &mut dyn Renderer,
solids: &LevelSolids,
draw_collision_bounds: bool
) -> Result<()>
[src]
&self,
renderer: &mut dyn Renderer,
solids: &LevelSolids,
draw_collision_bounds: bool
) -> Result<()>
pub fn enter_level(&mut self, x: i32, y: i32)
[src]
pub fn would_collide(&self, solids: &LevelSolids, x: i32, y: i32) -> bool
[src]
pub fn update_animation(&mut self)
[src]
pub fn jump(&mut self)
[src]
pub fn land(&mut self)
[src]
pub fn act(
&mut self,
solids: &LevelSolids,
actor_adder: &mut dyn ActorAdder
) -> Result<u8>
[src]
&mut self,
solids: &LevelSolids,
actor_adder: &mut dyn ActorAdder
) -> Result<u8>
Returns the remaining health
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HeroData
impl Send for HeroData
impl Sync for HeroData
impl Unpin for HeroData
impl UnwindSafe for HeroData
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>,