pub enum EncounterStep<S> {
None,
Encounter {
species_level: (S, u8),
},
}Expand description
Outcome of a single completed step.
Neutral by construction: on an encounter it carries only (species_id, level) so the game - not the engine - builds the battle.
Variants§
None
No wild encounter fired this step.
Encounter
A wild encounter fired; the game should start a battle with this monster.
Trait Implementations§
Source§impl<S: Clone> Clone for EncounterStep<S>
impl<S: Clone> Clone for EncounterStep<S>
Source§fn clone(&self) -> EncounterStep<S>
fn clone(&self) -> EncounterStep<S>
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 moreSource§impl<S: Debug> Debug for EncounterStep<S>
impl<S: Debug> Debug for EncounterStep<S>
impl<S: Eq> Eq for EncounterStep<S>
Source§impl<S: PartialEq> PartialEq for EncounterStep<S>
impl<S: PartialEq> PartialEq for EncounterStep<S>
impl<S: PartialEq> StructuralPartialEq for EncounterStep<S>
Auto Trait Implementations§
impl<S> Freeze for EncounterStep<S>where
S: Freeze,
impl<S> RefUnwindSafe for EncounterStep<S>where
S: RefUnwindSafe,
impl<S> Send for EncounterStep<S>where
S: Send,
impl<S> Sync for EncounterStep<S>where
S: Sync,
impl<S> Unpin for EncounterStep<S>where
S: Unpin,
impl<S> UnsafeUnpin for EncounterStep<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for EncounterStep<S>where
S: UnwindSafe,
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