-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinformation.py
116 lines (103 loc) · 2.72 KB
/
information.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
"""
Classes to represent Player information
"""
class Player:
"""Class to store player information"""
def __init__(self):
self.name = None
self.activity = None
self.forward = None
self.position = None
self.observer_slot = None
self.team = None
self.clan = None
self.steamid = None
self.spectarget = None
self.state = State()
self.match_stats = MatchStats()
self.weapons = {}
class State:
"""Class to store player state information"""
def __init__(self):
self.armor = None
self.burning = None
self.equip_value = None
self.flashed = None
self.health = None
self.helmet = None
self.money = None
self.round_killhs = None
self.round_kills = None
self.round_totaldmg = None
self.smoked = None
class MatchStats:
"""Class to store player match stats information"""
def __init__(self):
self.assists = None
self.deaths = None
self.kills = None
self.mvps = None
self.score = None
"""
Classes to represent Map information
"""
class Map:
"""Class to store map information"""
def __init__(self):
self.round_wins = None
self.current_spectators = None
self.mode = None
self.name = None
self.num_matches_to_win_series = None
self.phase = None
self.round = None
self.souvenirs_total = None
self.team_ct = Team()
self.team_t = Team()
class Team:
"""Class to store map teams information"""
def __init__(self):
self.consecutive_round_losses = None
self.matches_won_this_series = None
self.score = None
self.name = None
self.timeouts_remaining = None
"""
Class to represent Provider information
"""
class Provider:
"""Class to store provider information"""
def __init__(self):
self.appid = None
self.name = None
self.steamid = None
self.timestamp = None
self.version = None
self.update_info = None
"""
Class to represent Phase Countdowns information
"""
class PhaseCountdowns:
"""Class to store phase countdowns information"""
def __init__(self):
self.phase = None
self.phase_ends_in = None
"""
Class to represent Bomb information
"""
class Bomb:
"""Class to store bomb information"""
def __init__(self):
self.player = None
self.position = None
self.state = None
self.countdown = None
"""
Class to represent Round information
"""
class Round:
"""Class to store round information"""
def __init__(self):
self.phase = None
self.win_team = None
self.bomb = None