pub struct Player {
pub nickname: String,
pub pose: PlayerPose,
pub id: u16,
}Expand description
Middle level abstraction.
Represents an asciicker player
Not used internally, but created by Bot::run and passed into callbacks + main bot function
as representation of the bot in the asciicker world.
There is also Vec<Player> in World that represents all current players
(excluding the bot) and managed by Receiver thread.
Fields§
§nickname: StringNickname
pose: PlayerPoseCurrent position + animation + sprite
id: u16ID
Trait Implementations§
Source§impl PartialOrd for Player
impl PartialOrd for Player
impl StructuralPartialEq for Player
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
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