Skip to content

Objectives Extractor

Tower kills, barracks destructions, Roshan kills, and Tormentor kills.

Tormentor Kills

Tracks destruction of Tormentor minibosses. Killer player attribution is resolved by combining combat log death data with the corresponding miniboss kill chat event.


Generated API

Module gem.extractors.objectives

Objective event extractor for Dota 2 replays.

Source: src/gem/extractors/objectives.py

Top-level classes

TowerKill

python
class TowerKill

One tower destruction event.

Source: src/gem/extractors/objectives.py:87

Dataclass fields

NameTypeDefault
tickint-
teamint-
killerstr-
tower_namestr-
killer_sourcestr''

RoshanKill

python
class RoshanKill

One confirmed Roshan death.

Source: src/gem/extractors/objectives.py:109

Dataclass fields

NameTypeDefault
tickint-
killerstr-
kill_numberint-
dropslist[str]field(...)
killer_sourcestr''

BarracksKill

python
class BarracksKill

One barracks destruction event.

Source: src/gem/extractors/objectives.py:131

Dataclass fields

NameTypeDefault
tickint-
teamint-
killerstr-
barracks_namestr-
killer_sourcestr''

TormentorKill

python
class TormentorKill

One Tormentor (miniboss) kill event.

Source: src/gem/extractors/objectives.py:151

Dataclass fields

NameTypeDefault
tickint-
killerstr-
killer_player_idint-
kill_numberint-

ShrineKill

python
class ShrineKill

One Shrine of Wisdom destruction event.

Source: src/gem/extractors/objectives.py:170

Dataclass fields

NameTypeDefault
tickint-
teamint-

AegisEvent

python
class AegisEvent

An Aegis of the Immortal pickup, steal, or denial event.

Source: src/gem/extractors/objectives.py:183

Dataclass fields

NameTypeDefault
tickint-
player_idint-
event_typestr-

BannerPlant

python
class BannerPlant

One Roshan's Banner plant event.

Source: src/gem/extractors/objectives.py:199

Dataclass fields

NameTypeDefault
tickint-
teamint-
player_idint-
xfloat | None-
yfloat | None-

CourierDeath

python
class CourierDeath

One courier death, detected from the combat log.

Source: src/gem/extractors/objectives.py:223

Dataclass fields

NameTypeDefault
tickint-
killerstr-
killer_sourcestr''

ObjectivesExtractor

python
class ObjectivesExtractor

Extracts tower kills, Roshan kills, barracks kills, tormentor kills, and shrine kills from a replay.

Source: src/gem/extractors/objectives.py:248

Methods

attach

Signature: def ObjectivesExtractor.attach(self, parser: ReplayParser) -> None

Register this extractor's callbacks with a parser.

Source: src/gem/extractors/objectives.py:306