sc2_datasets.replay_parser.tracker_events.events.player_stats.stats

Classes

Stats

Stats holds specific fields on the economy of a player and is used in PlayerStats event.

Module Contents

class Stats

Bases: sc2_datasets.replay_parser.tracker_events.tracker_event.TrackerEvent

Stats holds specific fields on the economy of a player and is used in PlayerStats event.

Parameters:
  • foodMade (int) – Specifies the amount of supply that a player created. This is a limit of units that can be made.

  • foodUsed (int) – Specifies how much of the supply is used for units.

  • mineralsCollectionRate (int) – Specifies the collection rate of minerals. Most likely per minute.

  • mineralsCurrent (int) – Specifies how much minerals the player has in his “bank”.

  • mineralsFriendlyFireArmy (int) – Specifies how much minerals were lost in friendly fire on army units.

  • mineralsFriendlyFireEconomy (int) – Specifies how much minerals were lost in friendly fire on economy.

  • mineralsFriendlyFireTechnology (int) – Specifies how much minerals were lost in friendly fire on technology.

  • mineralsKilledArmy (int) – Specifies how much minerals a player killed in his opponent’s army.

  • mineralsKilledEconomy (int) – Specifies how much minerals player killed in his opponent’s economy.

  • mineralsKilledTechnology (int) – Specifies how much minerals player killed in his opponent’s technology.

  • mineralsLostArmy (int) – Specifies how much minerals player lost in his army.

  • mineralsLostEconomy (int) – Specifies how much minerals player lost in his economy.

  • mineralsLostTechnology (int) – Specifies how much minerals player lost in his technology.

  • mineralsUsedActiveForces (int) – Specifies how much minerals does the player have in his active forces.

  • mineralsUsedCurrentArmy (int) – Specifies how much minerals does the player have in his army.

  • mineralsUsedCurrentEconomy (int) – Specifies how much minerals does the player have in his economical units and structures.

  • mineralsUsedCurrentTechnology (int) – Specifies how much minerals does the player have in his technological units, upgrades, and structures.

  • mineralsUsedInProgressArmy (int) – Specifies how much minerals does the player have in army that is currently being built.

  • mineralsUsedInProgressEconomy (int) – Specifies how much minerals does the player have in economy that is currently being built.

  • mineralsUsedInProgressTechnology (int) – Specifies how much minerals does the player have in technology that is currently being built.

  • vespeneCollectionRate (int) – Specifies what is the vespene collection rate. Most likely per minute.

  • vespeneCurrent (int) – Specifies the amount of vespene gas that the user has in his “bank”.

  • vespeneFriendlyFireArmy (int) – Specifies how much vespene was lost in friendly fire on army units.

  • vespeneFriendlyFireEconomy (int) – Specifies how much vespene was lost in friendly fire on economy.

  • vespeneFriendlyFireTechnology (int) – Specifies how much vespene was lost in friendly fire on technology.

  • vespeneKilledArmy (int) – Specifies how much vespene player killed in his opponent’s army.

  • vespeneKilledEconomy (int) – Specifies how much vespene player killed in his opponent’s economy.

  • vespeneKilledTechnology (int) – Specifies how much vespene player killed in his opponent’s technology.

  • vespeneLostArmy (int) – Specifies how much vespene player lost in his army.

  • vespeneLostEconomy (int) – Specifies how much vespene player lost in his economy.

  • vespeneLostTechnology (int) – Specifies how much vespene player lost in his technology.

  • vespeneUsedActiveForces (int) – Specifies how much vespene does the player have in his active forces.

  • vespeneUsedCurrentArmy (int) – Specifies how much vespene does the player have in his army.

  • vespeneUsedCurrentEconomy (int) – Specifies how much vespene does the player have in his economical units and structures.

  • vespeneUsedCurrentTechnology (int) – Specifies how much vespene does the player have in his technological units, upgrades, and structures.

  • vespeneUsedInProgressArmy (int) – Specifies how much vespene does the player have in army that is currently being built.

  • vespeneUsedInProgressEconomy (int) – Specifies how much minerals does the player have in economy that is currently being built.

  • vespeneUsedInProgressTechnology (int) – Specifies how much minerals does the player have in technology that is currently being built.

  • workersActiveCount (int) – Specifies the number of workers that the player has.

foodMade: int
foodUsed: int
mineralsCollectionRate: int
mineralsCurrent: int
mineralsFriendlyFireArmy: int
mineralsFriendlyFireEconomy: int
mineralsFriendlyFireTechnology: int
mineralsKilledArmy: int
mineralsKilledEconomy: int
mineralsKilledTechnology: int
mineralsLostArmy: int
mineralsLostEconomy: int
mineralsLostTechnology: int
mineralsUsedActiveForces: int
mineralsUsedCurrentArmy: int
mineralsUsedCurrentEconomy: int
mineralsUsedCurrentTechnology: int
mineralsUsedInProgressArmy: int
mineralsUsedInProgressEconomy: int
mineralsUsedInProgressTechnology: int
vespeneCollectionRate: int
vespeneCurrent: int
vespeneFriendlyFireArmy: int
vespeneFriendlyFireEconomy: int
vespeneFriendlyFireTechnology: int
vespeneKilledArmy: int
vespeneKilledEconomy: int
vespeneKilledTechnology: int
vespeneLostArmy: int
vespeneLostEconomy: int
vespeneLostTechnology: int
vespeneUsedActiveForces: int
vespeneUsedCurrentArmy: int
vespeneUsedCurrentEconomy: int
vespeneUsedCurrentTechnology: int
vespeneUsedInProgressArmy: int
vespeneUsedInProgressEconomy: int
vespeneUsedInProgressTechnology: int
workersActiveCount: int
static from_dict(d: dict) Stats

Static method returning initialized Stats class from a dictionary. This helps with the original JSON parsing.

Parameters:

d (dict) – Specifies a dictionary as available in the JSON file that is a result of pre-processing some .SC2Replay file.

Returns:

Returns an initialized Stats class.

Return type:

Stats