Struct rusty_sword_arena::game::Weapon[][src]

pub struct Weapon {
    pub description: String,
    pub damage: f32,
    pub attack_timer: Timer,
    pub radius: f32,
}

A weapon a player may hold

Fields

Something like "Rusty Sword", "Shiny Sword", "Rusty Spear", etc.

How much damage the weapon can cause

How long until the player can attack again

How far attacks reach from your player, in OpenGL units.

Methods

impl Weapon
[src]

Trait Implementations

impl Clone for Weapon
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Weapon
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Weapon
[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 Weapon

impl Sync for Weapon