Struct rpgstat::stats::Normal[][src]

pub struct Normal {
Show 13 fields pub xp: f64, pub hp: f64, pub mp: f64, pub xp_next: f64, pub hp_max: f64, pub mp_max: f64, pub level: f64, pub speed: f64, pub gp: f64, pub atk: f64, pub def: f64, pub m_atk: f64, pub m_def: f64,
}

Fields

xp: f64

Experience Points

hp: f64

Health Points

mp: f64

Mana Points

xp_next: f64

Experience Points multiplier for next level

hp_max: f64

Max Health Points

mp_max: f64

Max Mana Points

level: f64

Current Level

speed: f64

The speed

gp: f64

your currency points

atk: f64

Attack

def: f64

Defense

m_atk: f64

Mana Attack

m_def: f64

Mana Defense

Implementations

make empty stats

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.