2022-06-17 17:53:33 +00:00
|
|
|
#[cfg(feature = "serde")]
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
2022-07-01 15:52:00 +00:00
|
|
|
/// 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)]
|
2022-06-17 17:53:33 +00:00
|
|
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
2022-08-20 10:22:12 +00:00
|
|
|
#[repr(u8)]
|
2021-01-30 21:29:59 +00:00
|
|
|
pub enum Statistic {
|
2022-07-01 15:52:00 +00:00
|
|
|
/// Health Points determine how much damage a Pokemon can receive before fainting.
|
2021-01-30 21:29:59 +00:00
|
|
|
HP,
|
2022-07-01 15:52:00 +00:00
|
|
|
/// Attack determines how much damage a Pokemon deals when using a physical attack.
|
2021-01-30 21:29:59 +00:00
|
|
|
Attack,
|
2022-07-01 15:52:00 +00:00
|
|
|
/// Defense determines how much damage a Pokemon receives when it is hit by a physical attack.
|
2021-01-30 21:29:59 +00:00
|
|
|
Defense,
|
2022-07-01 15:52:00 +00:00
|
|
|
/// Special Attack determines how much damage a Pokemon deals when using a special attack.
|
2021-01-30 21:29:59 +00:00
|
|
|
SpecialAttack,
|
2022-07-01 15:52:00 +00:00
|
|
|
/// Special Defense determines how much damage a Pokemon receives when it is hit by a special attack.
|
2021-01-30 21:29:59 +00:00
|
|
|
SpecialDefense,
|
2022-07-01 15:52:00 +00:00
|
|
|
/// Speed determines the order that a Pokemon can act in battle.
|
2021-01-30 21:29:59 +00:00
|
|
|
Speed,
|
|
|
|
}
|