pub struct Pokemon {Show 23 fields
pub id: PokemonName,
pub level: i8,
pub types: (PokemonType, PokemonType),
pub base_types: (PokemonType, PokemonType),
pub hp: i16,
pub maxhp: i16,
pub ability: Abilities,
pub base_ability: Abilities,
pub item: Items,
pub nature: PokemonNature,
pub evs: (u8, u8, u8, u8, u8, u8),
pub attack: i16,
pub defense: i16,
pub special_attack: i16,
pub special_defense: i16,
pub speed: i16,
pub status: PokemonStatus,
pub rest_turns: i8,
pub sleep_turns: i8,
pub weight_kg: f32,
pub terastallized: bool,
pub tera_type: PokemonType,
pub moves: PokemonMoves,
}Fields§
§id: PokemonName§level: i8§types: (PokemonType, PokemonType)§base_types: (PokemonType, PokemonType)§hp: i16§maxhp: i16§ability: Abilities§base_ability: Abilities§item: Items§nature: PokemonNature§evs: (u8, u8, u8, u8, u8, u8)§attack: i16§defense: i16§special_attack: i16§special_defense: i16§speed: i16§status: PokemonStatus§rest_turns: i8§sleep_turns: i8§weight_kg: f32§terastallized: bool§tera_type: PokemonType§moves: PokemonMovesImplementations§
Source§impl Pokemon
impl Pokemon
pub fn recalculate_stats( &mut self, side_ref: &SideReference, instructions: &mut StateInstructions, )
pub fn calculate_stats_from_base_stats(&self) -> (i16, i16, i16, i16, i16, i16)
pub fn get_stat_from_boostable_stat(&self, stat: PokemonBoostableStat) -> i16
pub fn get_sleep_talk_choices(&self) -> Vec<Choice>
pub fn replace_move( &mut self, move_index: PokemonMoveIndex, new_move_name: Choices, )
pub fn add_available_moves( &self, vec: &mut Vec<MoveChoice>, last_used_move: &LastUsedMove, encored: bool, can_tera: bool, )
pub fn add_move_from_choice(&self, vec: &mut Vec<MoveChoice>, choice: Choices)
pub fn has_type(&self, pkmn_type: &PokemonType) -> bool
pub fn item_is_permanent(&self) -> bool
pub fn item_can_be_removed(&self) -> bool
pub fn is_grounded(&self) -> bool
pub fn volatile_status_can_be_applied( &self, volatile_status: &PokemonVolatileStatus, active_volatiles: &HashSet<PokemonVolatileStatus>, first_move: bool, ) -> bool
pub fn immune_to_stats_lowered_by_opponent( &self, stat: &PokemonBoostableStat, volatiles: &HashSet<PokemonVolatileStatus>, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pokemon
impl RefUnwindSafe for Pokemon
impl Send for Pokemon
impl Sync for Pokemon
impl Unpin for Pokemon
impl UnwindSafe for Pokemon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more