ynorouz / pyreplib

Automatically exported from code.google.com/p/pyreplib
0 stars 0 forks source link

Build.get_building_type() doesn't return the right building type #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Load a replay, pretty much any replay: 
    >>> from pyreplib import replay, actions
    >>> rep = replay.Replay('LastReplay.rep')

Use list comprehensions to filter only the Build actions and return the
building type:
    >>> [a.get_building_type() for a in rep.players[0].actions if
isinstance(a, actions.Build)]

Notice how none of the data makes sense.

Original issue reported on code.google.com by vfo...@gmail.com on 12 Jul 2008 at 4:05

GoogleCodeExporter commented 8 years ago
This is now fixed in r35

Original comment by vfo...@gmail.com on 12 Jul 2008 at 6:23

GoogleCodeExporter commented 8 years ago

Original comment by vfo...@gmail.com on 12 Jul 2008 at 6:24