PkmnLib_rs/src/static_data/statistics.rs

22 lines
901 B
Rust
Raw Normal View History

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
/// Stats are numerical values on Pokemon that are used in battle.
2022-06-11 18:51:37 +00:00
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
2022-08-20 10:22:12 +00:00
#[repr(u8)]
pub enum Statistic {
/// Health Points determine how much damage a Pokemon can receive before fainting.
HP,
/// Attack determines how much damage a Pokemon deals when using a physical attack.
Attack,
/// Defense determines how much damage a Pokemon receives when it is hit by a physical attack.
Defense,
/// Special Attack determines how much damage a Pokemon deals when using a special attack.
SpecialAttack,
/// Special Defense determines how much damage a Pokemon receives when it is hit by a special attack.
SpecialDefense,
/// Speed determines the order that a Pokemon can act in battle.
Speed,
}