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

Player has attacked and hit player id.

Fields of AttackHit

Player has attacked, but not hit anyone.

Player has changed to a new weapon

Player has died

Player has stopped healing

Player has started healing

Player has stopped moving

Player has started moving

Player has spawned

Player has received damage

Player has joined the game

Player has left the game

Trait Implementations

impl Clone for PlayerEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PlayerEvent
[src]

Formats the value using the given formatter. Read more

impl PartialEq for PlayerEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for PlayerEvent

impl Sync for PlayerEvent