Enum rusty_sword_arena::game::PlayerEvent [−][src]
pub enum PlayerEvent { AttackHit { id: u8, }, AttackMiss, ChangeWeapon, Die, HealEnd, HealStart, MoveEnd, MoveStart, Spawn, TookDamage, Join, Leave, }
An event that has happened to your player this frame! Note that it's possible to receive a whole bunch of events in the same frame.
Variants
AttackHit
Player has attacked and hit player id.
Fields of AttackHit
id: u8 |
AttackMiss
Player has attacked, but not hit anyone.
ChangeWeapon
Player has changed to a new weapon
Die
Player has died
HealEnd
Player has stopped healing
HealStart
Player has started healing
MoveEnd
Player has stopped moving
MoveStart
Player has started moving
Spawn
Player has spawned
TookDamage
Player has received damage
Join
Player has joined the game
Leave
Player has left the game
Trait Implementations
impl Clone for PlayerEvent
[src]
impl Clone for PlayerEvent
fn clone(&self) -> PlayerEvent
[src]
fn clone(&self) -> PlayerEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for PlayerEvent
[src]
impl Debug for PlayerEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for PlayerEvent
[src]
impl PartialEq for PlayerEvent
fn eq(&self, other: &PlayerEvent) -> bool
[src]
fn eq(&self, other: &PlayerEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PlayerEvent) -> bool
[src]
fn ne(&self, other: &PlayerEvent) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for PlayerEvent
impl Send for PlayerEvent
impl Sync for PlayerEvent
impl Sync for PlayerEvent