echovr_api.last_score module¶
-
class
echovr_api.last_score.
ContextualizedLastScore
(game_state, **superclass_attributes)[source]¶ Bases:
echovr_api.last_score.LastScore
Statistics about a goal, in the context of a
GameState
The same as the
LastScore
class, but with additional convenience methods and properties enabled by the context provided by aGameState
object.Parameters: -
game_state
= None¶ An object representing the current state of the game
-
-
class
echovr_api.last_score.
LastScore
(disc_speed=0.0, team='blue', goal_type='[NO GOAL]', point_amount=0, distance_thrown=0.0, person_scored='[INVALID]', assist_scored='[INVALID]')[source]¶ Bases:
object
Statistics about the most recent goal scored in the current game.
Initialized using data directly from the Echo VR API. See the Echo VR API documentation for further details on the attributes associated with this class, and the expected intialization parameters.
Parameters: - disc_speed (
float
) – The speed of the disk when it entered the goal - team (
str
) – “blue” or “orange” depending on which team scored - goal_type (
str
) – A human-readable explanation of the type of goal scored - point_amount (
int
) – The number of points scored (2 or 3) - distance_thrown (
float
) – The distance the goal was scored from - person_scored (
str
) – Username of the player who scored the goal - assist_scored (
str
) – Username of the player who assisted the goal, if any
-
assist_scored_username
= None¶ The username of the player who assisted the goal, if any
-
disc_speed
= None¶ The speed of the disk when it entered the goal, in meters/second
-
distance_thrown
= None¶ The distance the goal was scored from
-
goal_type
= None¶ A human-readable explanation of the type of goal scored
-
person_scored_username
= None¶ The username of the player who scored the goal
-
point_amount
= None¶ The number of points scored (2 or 3)
- disc_speed (