Struct mold2d::sprite::Animations [] [src]

pub struct Animations<State> { /* fields omitted */ }

An animation manager that retrieves the animations for a state

Methods

impl<State> Animations<State> where
    State: Clone + Eq + Hash
[src]

Returns an immutable reference to the animation for the given state

Returns a mutable reference to the animation for the given state

Returns an immutable reference to the bounding box for the given state

Returns a mutable reference to the bounding box for the given state

Maps a function that mutates a bounding box over all of the bounding boxes in the animation

Checks if the animation at the state collides with another bounding box and returns the side of the collision if it happens

Adds time to the current animation

Renders an animation in the manager