[][src]Struct sulis_state::animation::Anim

pub struct Anim { /* fields omitted */ }

Implementations

impl Anim[src]

pub fn new_non_blocking_wait(
    owner: &Rc<RefCell<EntityState>>,
    duration_millis: u32
) -> Anim
[src]

pub fn new_wait(owner: &Rc<RefCell<EntityState>>, duration_millis: u32) -> Anim[src]

pub fn new_entity_image_layer(
    owner: &Rc<RefCell<EntityState>>,
    duration_millis: ExtInt,
    images: HashMap<ImageLayer, Rc<dyn Image>>
) -> Anim
[src]

pub fn new_entity_color(
    owner: &Rc<RefCell<EntityState>>,
    duration_millis: ExtInt,
    color: [Param; 4],
    color_sec: [Param; 4]
) -> Anim
[src]

pub fn new_entity_scale(
    owner: &Rc<RefCell<EntityState>>,
    duration_millis: ExtInt,
    scale: Param
) -> Anim
[src]

pub fn new_entity_subpos(
    owner: &Rc<RefCell<EntityState>>,
    duration_millis: ExtInt,
    x: Param,
    y: Param
) -> Anim
[src]

pub fn new_entity_recover(owner: &Rc<RefCell<EntityState>>) -> Anim[src]

pub fn new_entity_death(owner: &Rc<RefCell<EntityState>>) -> Anim[src]

pub fn set_removal_effect(&mut self, index: usize)[src]

pub fn update(&mut self, millis: u32) -> bool[src]

pub fn draw(
    &self,
    renderer: &mut dyn GraphicsRenderer,
    offset: Offset,
    scale: Scale,
    millis: u32
)
[src]

pub fn add_completion_callback(&mut self, callback: Box<dyn ScriptCallback>)[src]

pub fn add_update_callback(
    &mut self,
    callback: Box<dyn ScriptCallback>,
    time_millis: u32
)
[src]

pub fn add_removal_listener(&self, effect: &mut Effect)[src]

pub fn get_marked_for_removal(&self) -> Rc<Cell<bool>>[src]

pub fn mark_for_removal(&mut self)[src]

pub fn owner(&self) -> &Rc<RefCell<EntityState>>[src]

pub fn is_blocking(&self) -> bool[src]

Auto Trait Implementations

impl !RefUnwindSafe for Anim

impl !Send for Anim

impl !Sync for Anim

impl Unpin for Anim

impl !UnwindSafe for Anim

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>, 
[src]