Struct entmet_lib::entities::entity::Turtle
source · pub struct Turtle {
pub home_pos: (i32, i32, i16),
pub has_egg: bool,
pub is_laying_egg: bool,
pub travel_pos: (i32, i32, i16),
pub is_going_home: bool,
pub is_traveling: bool,
/* private fields */
}Expand description
An instance of a turtle
Fields§
§home_pos: (i32, i32, i16)The position of the home of the turtle
has_egg: boolWhether the turtle has eggs or not
is_laying_egg: boolWhether the turtle is currently laying eggs or not
travel_pos: (i32, i32, i16)The position that the turle is aming to travel to
is_going_home: boolWhether the turtle is going home or not
is_traveling: boolWhether the turtle is traveling or not
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Turtle
impl RefUnwindSafe for Turtle
impl Send for Turtle
impl Sync for Turtle
impl Unpin for Turtle
impl UnwindSafe for Turtle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more