Skip to content

Commit 3bd1d44

Browse files
committed
Add autodoc for the Replay class.
1 parent 2d26fd5 commit 3bd1d44

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

sc2reader/replay.py

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,85 @@
99

1010
class Replay(object):
1111

12+
#: Fully qualified filename of the replay file represented.
13+
filename = str()
14+
15+
#: Total number of frames in this game at 16 frames per second.
16+
frames = int()
17+
18+
#: The SCII game engine build number
19+
build = int()
20+
21+
#: The full version release string as seen on Battle.net
22+
release_string = str()
23+
24+
#: The :class:`Length` of the replay as an alternative to :attr:`frames`
25+
length = utils.Length()
26+
27+
#: The effective game speed when the game was played.
28+
speed = str()
29+
30+
#: The game type: 1v1, 2v2, 3v3, 4v4, FFA
31+
type = str()
32+
33+
#: The category of the game, Ladder and Private
34+
category = str()
35+
36+
#: A flag for public ladder games
37+
is_ladder = bool()
38+
39+
#: A flag for private non-ladder games
40+
is_private = bool()
41+
42+
#: The name of the map the game was played on
43+
map = str()
44+
45+
#: The gateway the game was played on: us, eu, sea, etc
46+
gateway = str()
47+
48+
#: An integrated list of all the game events
49+
events = list()
50+
51+
#: A dict mapping team numbers to their game result
52+
results = dict()
53+
54+
#: A list of :class:`Team` objects from the game
55+
teams = list()
56+
57+
#: A dict mapping team number to :class:`Team` object
58+
team = dict()
59+
60+
#: A list of :class:`Player` objects from the game
61+
players = list()
62+
63+
#: A dual key dict mapping player names and numbers to
64+
#: :class:`Player` objects
65+
player = utils.PersonDict()
66+
67+
#: A list of :class:`Observer` objects from the game
68+
observers = list()
69+
70+
#: A list of :class:`Person` objects from the game representing
71+
#: both the player and observer lists
72+
people = list()
73+
74+
#: A dual key dict mapping :class:`Person` object to their
75+
#: person id's and names
76+
person = utils.PersonDict()
77+
78+
#: A list of :class:`Person` objects from the game represnting
79+
#: only the human players from the :attr:`people` list
80+
humans = list()
81+
82+
#: A list of all the chat message events from the game
83+
messages = list()
84+
85+
#: A reference to the :class:`Person` that recorded the game
86+
recorder = None
87+
88+
#: A flag indicating whether all the results are known or not
89+
winner_known = bool()
90+
1291
def __init__(self, replay_file, **options):
1392
self.opt = utils.AttributeDict(options)
1493
self.datapack = None

0 commit comments

Comments
 (0)