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
class TowerKill
One tower destruction event.
Source: src/gem/extractors/objectives.py:102
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
team | int | - |
killer | str | - |
tower_name | str | - |
killer_source | str | '' |
killer_team | int | None | None |
RoshanKill
class RoshanKill
One confirmed Roshan death.
Source: src/gem/extractors/objectives.py:127
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
killer | str | - |
kill_number | int | - |
drops | list[str] | field(...) |
killer_source | str | '' |
killer_team | int | None | None |
BarracksKill
class BarracksKill
One barracks destruction event.
Source: src/gem/extractors/objectives.py:152
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
team | int | - |
killer | str | - |
barracks_name | str | - |
killer_source | str | '' |
killer_team | int | None | None |
TormentorKill
class TormentorKill
One Tormentor (miniboss) kill event.
Source: src/gem/extractors/objectives.py:175
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
killer | str | - |
killer_player_id | int | - |
kill_number | int | - |
killer_team | int | None | None |
ShrineKill
class ShrineKill
One Shrine of Wisdom destruction event.
Source: src/gem/extractors/objectives.py:197
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
team | int | - |
AegisEvent
class AegisEvent
An Aegis of the Immortal pickup, steal, or denial event.
Source: src/gem/extractors/objectives.py:210
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
player_id | int | - |
event_type | str | - |
BannerPlant
class BannerPlant
One Roshan's Banner plant event.
Source: src/gem/extractors/objectives.py:226
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
team | int | - |
player_id | int | - |
x | float | None | - |
y | float | None | - |
CourierDeath
class CourierDeath
One courier death, detected from the combat log.
Source: src/gem/extractors/objectives.py:250
Dataclass fields
| Name | Type | Default |
|---|---|---|
tick | int | - |
killer | str | - |
killer_source | str | '' |
ObjectivesExtractor
class ObjectivesExtractor
Extracts tower kills, Roshan kills, barracks kills, tormentor kills, and shrine kills from a replay.
Source: src/gem/extractors/objectives.py:275
Methods
attach
Signature: def ObjectivesExtractor.attach(self, parser: ReplayParser) -> None
Register this extractor's callbacks with a parser.