#[non_exhaustive]
#[repr(u16)]
pub enum Encounter {
Show 44 variants
ValeGuardian,
Gorseval,
Sabetha,
Slothasor,
BanditTrio,
Matthias,
KeepConstruct,
TwistedCastle,
Xera,
Cairn,
MursaatOverseer,
Samarog,
Deimos,
SoullessHorror,
RiverOfSouls,
BrokenKing,
EaterOfSouls,
StatueOfDarkness,
VoiceInTheVoid,
ConjuredAmalgamate,
TwinLargos,
Qadim,
CardinalAdina,
CardinalSabir,
QadimThePeerless,
StandardKittyGolem,
MediumKittyGolem,
LargeKittyGolem,
Ai,
Skorvald,
Artsariiv,
Arkk,
MAMA,
Siax,
Ensolyss,
IcebroodConstruct,
SuperKodanBrothers,
FraenirOfJormag,
Boneskinner,
WhisperOfJormag,
CaptainMaiTrin,
Ankka,
MinisterLi,
Dragonvoid,
}
Expand description
Enum containing all encounters with their IDs.
An encounter is a fight or event for which a log can exist. An encounter consists of no, one or multiple bosses. Most encounters map 1:1 to a boss (like Vale Guardian), however there are some encounters with multiple bosses (like Twin Largos), and even encounters without bosses (like the River of Souls).
Note that the meaning of “encounter” in the Guild Wars 2 Wiki is not the same as what
Encounter
represents. In many cases, they match, however there are some encounters which
have no associated Encounter
(like Spirit Run or Escort) and some cases where multiple
Encounter
s exist for a single encounter (like the Statues of Grenth encounter in the Hall
of Chains).
This enum is non-exhaustive to ensure that future encounters can be added without inducing a breaking change.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
ValeGuardian
Gorseval
Sabetha
Slothasor
BanditTrio
The “Protect the caged prisoners” event in Salvation Pass.
Consists of Boss::Berg
, Boss::Zane
and Boss::Narella
.
Matthias
KeepConstruct
TwistedCastle
The “Traverse the Twisted Castle” encounter, between Keep Construct and Xera.
Xera
Cairn
MursaatOverseer
Samarog
Deimos
SoullessHorror
RiverOfSouls
The River of Souls is the Desmina escort event and an encounter that does not have a boss.
BrokenKing
EaterOfSouls
StatueOfDarkness
The Statue of Darkness consists of killing the Eye of Judgment and the Eye of Fate.
Colloquially known as just “eyes”.
VoiceInTheVoid
ConjuredAmalgamate
TwinLargos
Qadim
CardinalAdina
CardinalSabir
QadimThePeerless
StandardKittyGolem
MediumKittyGolem
LargeKittyGolem
Ai
Skorvald
Artsariiv
Arkk
MAMA
Siax
Ensolyss
IcebroodConstruct
SuperKodanBrothers
Internal name for the “Voice of the Fallen and Claw of the Fallen” strike mission.
FraenirOfJormag
Boneskinner
WhisperOfJormag
CaptainMaiTrin
Ankka
MinisterLi
Dragonvoid
Implementations
sourceimpl Encounter
impl Encounter
sourcepub fn bosses(self) -> &'static [Boss]
pub fn bosses(self) -> &'static [Boss]
Return all possible bosses that can appear in this encounter.
This returns the possible boss IDs, not actual agents. For a similar function check
Log::boss_agents
.
Note that not all of them have to be present in a log, for example if the encounter stopped before all of them spawned.
sourcepub fn from_header_id(id: u16) -> Option<Encounter>
pub fn from_header_id(id: u16) -> Option<Encounter>
Converts a combat ID as given in the arcdps header into the correct encounter.
This properly takes care of encounters with multiple bosses or which could be saved as multiple bosses.
assert_eq!(Encounter::from_header_id(0x3C4E), Some(Encounter::ValeGuardian));
assert_eq!(Encounter::from_header_id(0x5261), Some(Encounter::TwinLargos));
sourcepub fn game_mode(self) -> GameMode
pub fn game_mode(self) -> GameMode
Returns the game mode of the encounter.
This is one of GameMode::Raid
, GameMode::Fractal
, GameMode::Golem
or
GameMode::Strike
.
Trait Implementations
sourceimpl FromPrimitive for Encounter
impl FromPrimitive for Encounter
sourcefn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
impl Copy for Encounter
impl Eq for Encounter
impl StructuralEq for Encounter
impl StructuralPartialEq for Encounter
Auto Trait Implementations
impl RefUnwindSafe for Encounter
impl Send for Encounter
impl Sync for Encounter
impl Unpin for Encounter
impl UnwindSafe for Encounter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more