Tournament Objects#
NovaBasicTournament Reference#
- class novauniverse.objects.tournaments.NovaBasicTournament(data: dict)[source]#
Bases:
NovaDataclass
Represents a base dataclass for every tournament on nova universe.
- data: dict#
- date: datetime#
Returns date the tournament took place.
- display_name: str#
Returns the display name of the tournament.
- id: int#
Returns ID of tournament.
- players: List[TournamentPlayer]#
Returns all the players in that tournament.
- teams: List[TournamentTeam]#
Returns all the teams in that tournament.
- winner_team: TournamentTeam#
Returns the team that won.
- winner_team_id: int#
Returns winner team id.
TournamentPlayer Reference#
- class novauniverse.objects.tournaments.tournament_player.TournamentPlayer(data: dict)[source]#
Bases:
NovaBasicPlayer
A base tournament player class, used in interfaces like mcf and nova games because player data is very similar between them.
- kills: int#
Returns the current amount of kills the player achieved.
- score: int#
Returns the score the player currently achieved.
- team_number: int#
Returns the team number of the player.
- uid: int#
Returns uid of tournament player.
TournamentTeam Reference#
- class novauniverse.objects.tournaments.tournament_team.TournamentTeam(data: dict, players_data: List[TournamentPlayer])[source]#
Bases:
NovaDataclass
Represents a team from a tournament.
- data: dict#
- players: Tuple[TournamentPlayer]#
- players_data: List[TournamentPlayer]#
- team_number: int#
- team_score: int#