@@ -39,6 +39,7 @@ class PlayerStatsEvent(TrackerEvent):
39
39
events generated at the end of the game. One for leaving and one for
40
40
the end of the game.
41
41
"""
42
+
42
43
name = 'PlayerStatsEvent'
43
44
44
45
def __init__ (self , frames , data , build ):
@@ -211,6 +212,13 @@ def __str__(self):
211
212
212
213
213
214
class 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
+
214
222
name = 'UnitBornEvent'
215
223
216
224
def __init__ (self , frames , data , build ):
@@ -257,6 +265,11 @@ def __str__(self):
257
265
258
266
259
267
class 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
+
260
273
name = 'UnitDiedEvent'
261
274
262
275
def __init__ (self , frames , data , build ):
@@ -375,6 +388,13 @@ def __str__(self):
375
388
376
389
377
390
class 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
+
378
398
name = 'UnitInitEvent'
379
399
380
400
def __init__ (self , frames , data , build ):
@@ -417,10 +437,16 @@ def __init__(self, frames, data, build):
417
437
self .location = (self .x , self .y )
418
438
419
439
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 )
421
441
422
442
423
443
class 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
+
424
450
name = 'UnitDoneEvent'
425
451
426
452
def __init__ (self , frames , data , build ):
0 commit comments