pub enum MoveEffect {
Show 13 variants
Damage,
Heal,
StatusCondition,
StatChange,
MultiHit,
Recharge,
DrainHp,
Recoil,
Flinch,
FieldEffect,
SpecialDamage,
Ohko,
MultiTurn,
}Expand description
Categories of additional effects a move can have.
This enum classifies post-damage or primary effects so that effect handlers can dispatch to the appropriate logic. The concrete parameters (power, type, status details) are obtained from the provider.
Variants§
Damage
Pure damage, no additional effect.
Heal
Heals the user.
StatusCondition
Inflicts a status condition on the target.
StatChange
Raises or lowers a stat stage.
MultiHit
Hits multiple times in one turn.
Recharge
User must recharge next turn.
DrainHp
Drains HP from the target.
Recoil
User takes recoil damage.
Flinch
Has a chance to flinch the target.
FieldEffect
Sets or changes field conditions (weather, terrain, screens).
SpecialDamage
Fixed-damage special move (ignores normal formula).
Ohko
One-hit KO attempt.
MultiTurn
Multi-turn move (charge turn, trapping, etc.).
Trait Implementations§
Source§impl Clone for MoveEffect
impl Clone for MoveEffect
Source§fn clone(&self) -> MoveEffect
fn clone(&self) -> MoveEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MoveEffect
Source§impl Debug for MoveEffect
impl Debug for MoveEffect
impl Eq for MoveEffect
Source§impl PartialEq for MoveEffect
impl PartialEq for MoveEffect
impl StructuralPartialEq for MoveEffect
Auto Trait Implementations§
impl Freeze for MoveEffect
impl RefUnwindSafe for MoveEffect
impl Send for MoveEffect
impl Sync for MoveEffect
impl Unpin for MoveEffect
impl UnsafeUnpin for MoveEffect
impl UnwindSafe for MoveEffect
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