Struct macroquad_platformer::World[][src]

pub struct World { /* fields omitted */ }

Implementations

impl World[src]

pub fn new() -> World[src]

pub fn add_static_tiled_layer(
    &mut self,
    static_colliders: Vec<bool>,
    tile_width: f32,
    tile_height: f32,
    width: usize,
    tag: u8
)
[src]

pub fn add_actor(&mut self, pos: Vec2, width: i32, height: i32) -> Actor[src]

pub fn add_solid(&mut self, pos: Vec2, width: i32, height: i32) -> Solid[src]

pub fn set_actor_position(&mut self, actor: Actor, pos: Vec2)[src]

pub fn move_v(&mut self, actor: Actor, dy: f32) -> bool[src]

pub fn move_h(&mut self, actor: Actor, dy: f32) -> bool[src]

pub fn solid_move(&mut self, solid: Solid, dx: f32, dy: f32)[src]

pub fn solid_at(&self, pos: Vec2) -> bool[src]

pub fn tag_at(&self, pos: Vec2, tag: u8) -> bool[src]

pub fn collide_solids(&self, pos: Vec2, width: i32, height: i32) -> bool[src]

pub fn collide_tag(&self, tag: u8, pos: Vec2, width: i32, height: i32) -> bool[src]

pub fn squished(&self, actor: Actor) -> bool[src]

pub fn actor_pos(&self, actor: Actor) -> Vec2[src]

pub fn solid_pos(&self, solid: Solid) -> Vec2[src]

pub fn collide_check(&self, collider: Actor, pos: Vec2) -> bool[src]

Auto Trait Implementations

impl RefUnwindSafe for World

impl Send for World

impl Sync for World

impl Unpin for World

impl UnwindSafe for World

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.