[−][src]Struct tiny_rpg::data::Data
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 Unpin for Data
impl Send for Data
impl UnwindSafe for Data
impl RefUnwindSafe for Data
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,