echovr_api.team module¶
-
class
echovr_api.team.
Team
(team='', possession=False, players=[], stats={}, color=None)[source]¶ Bases:
object
Represents the state of a single team in the current game
Parameters: - team (
str
) – A human-readable team name. Usually either “ORANGE TEAM” or “BLUE TEAM”, but that’s subject to change, and may be different during LAN tournaments (though I’ve not yet confirmed this). - possession (
bool
) – Indicates whether this team currently has posession of the disk. - players (
List
[dict
]) – An array of dicts containing data used to instantiate the team’s players. - stats (
dict
) – A dict containing data used to instantiate the team’s current stats. - color (
Optional
[Color
]) – An enumerable Color representing the color of the team.
-
class
Color
[source]¶ Bases:
enum.Enum
Represents the color (blue or orange) of a team
-
BLUE
= 0¶
-
ORANGE
= 1¶
-
-
name
¶ Better-named alias for team.
-
score
¶ The current score of the team.
Note: There’s currently a bug in the API which makes this inaccurate if the team has scored self-goals, but it’s the best we have for now. If the API ever exposes more accurate data, this method will be updated to take advantage of that.
- team (