pub enum ClientMoveAction {
SetHP(ClientDamage<f32>),
AddStat(BattleStatType, Stage),
Ailment(Option<LiveAilment>),
Cancel(MoveCancel),
Miss,
SetExp(Experience, Level),
Error,
}Variants§
SetHP(ClientDamage<f32>)
This contains the percent HP the pokemon was left at, how effective the attack was, and if it was a critical hit. A Pokemon faints when it’s hp is set to 0.0
AddStat(BattleStatType, Stage)
Ailment(Option<LiveAilment>)
Cancel(MoveCancel)
Miss
SetExp(Experience, Level)
Error
Trait Implementations§
Source§impl Clone for ClientMoveAction
impl Clone for ClientMoveAction
Source§fn clone(&self) -> ClientMoveAction
fn clone(&self) -> ClientMoveAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientMoveAction
impl Debug for ClientMoveAction
Source§impl<'de> Deserialize<'de> for ClientMoveAction
impl<'de> Deserialize<'de> for ClientMoveAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ClientMoveAction
impl Serialize for ClientMoveAction
impl Copy for ClientMoveAction
Auto Trait Implementations§
impl Freeze for ClientMoveAction
impl RefUnwindSafe for ClientMoveAction
impl Send for ClientMoveAction
impl Sync for ClientMoveAction
impl Unpin for ClientMoveAction
impl UnwindSafe for ClientMoveAction
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