@@ -39,6 +39,7 @@ class PlayerStatsEvent(TrackerEvent):
3939 events generated at the end of the game. One for leaving and one for
4040 the end of the game.
4141 """
42+
4243 name = 'PlayerStatsEvent'
4344
4445 def __init__ (self , frames , data , build ):
@@ -211,6 +212,13 @@ def __str__(self):
211212
212213
213214class UnitBornEvent (TrackerEvent ):
215+ """
216+ Generated when a unit is created in a finished state in the game. Examples
217+ include the Marine, Zergling, and Zealot (when trained from a gateway).
218+ Units that enter the game unfinished (all buildings, warped in units) generate
219+ a :class:`UnitInitEvent` instead.
220+ """
221+
214222 name = 'UnitBornEvent'
215223
216224 def __init__ (self , frames , data , build ):
@@ -257,6 +265,11 @@ def __str__(self):
257265
258266
259267class UnitDiedEvent (TrackerEvent ):
268+ """
269+ Generated when a unit dies or is removed from the game for any reason. Reasons include
270+ morphing, merging, and getting killed.
271+ """
272+
260273 name = 'UnitDiedEvent'
261274
262275 def __init__ (self , frames , data , build ):
@@ -375,6 +388,13 @@ def __str__(self):
375388
376389
377390class UnitInitEvent (TrackerEvent ):
391+ """
392+ The counter part to :class:`UnitDoneEvent`, generated by the game engine
393+ when a unit is initiated. This applies only to units which are started
394+ in game before they are finished. Primary examples being buildings and
395+ warp-in units.
396+ """
397+
378398 name = 'UnitInitEvent'
379399
380400 def __init__ (self , frames , data , build ):
@@ -417,10 +437,16 @@ def __init__(self, frames, data, build):
417437 self .location = (self .x , self .y )
418438
419439 def __str__ (self ):
420- return self ._str_prefix ()+ "{0: >15} - Unit inititated {1}" .format (self .unit_upkeeper , self .unit )
440+ return self ._str_prefix ()+ "{0: >15} - Unit initiated {1}" .format (self .unit_upkeeper , self .unit )
421441
422442
423443class UnitDoneEvent (TrackerEvent ):
444+ """
445+ The counter part to the :class:`UnitInitEvent`, generated by the game engine
446+ when an initiated unit is completed. E.g. warp-in finished, building finished,
447+ morph complete.
448+ """
449+
424450 name = 'UnitDoneEvent'
425451
426452 def __init__ (self , frames , data , build ):
0 commit comments