[][src]Struct tiny_rpg::data::Data

pub struct Data { /* fields omitted */ }

Methods

impl Data[src]

pub fn new() -> Data[src]

pub fn set_level(&mut self, level: Level)[src]

pub fn check_position(&self, position: Rectangle) -> Option<&Entity>[src]

Returns &Entity if at position, else returns none

pub fn check_position_player(&self, position: Rectangle) -> Option<&Entity>[src]

pub fn check_position_both(&self, position: Rectangle) -> Option<&Entity>[src]

pub fn set_player(&mut self, player: Entity)[src]

pub fn get_player(&self) -> &Entity[src]

pub fn get_mut_player(&mut self) -> &mut Entity[src]

pub fn get_settings(&self) -> &Settings[src]

pub fn add_entity(&mut self, entity: Entity)[src]

pub fn entities_act(&mut self)[src]

pub fn get_entities(&self) -> &Vec<Entity>[src]

pub fn change_entities(&mut self, entities: Vec<Entity>)[src]

pub fn get_mut_entities(&mut self) -> &mut Vec<Entity>[src]

pub fn add_one_time(&mut self)[src]

pub fn get_time(&self) -> u32[src]

pub fn get_level(&self) -> &Level[src]

pub fn get_randomness(&self) -> f32[src]

pub fn get_randomness_with(&self, number: i32) -> f32[src]

Auto Trait Implementations

impl Sync for Data

impl Send for Data

impl Unpin for Data

impl RefUnwindSafe for Data

impl UnwindSafe for Data

Blanket Implementations

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]