Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
GameStatistics Struct Reference

Public Member Functions

 GameStatistics (int _average_duration_sec, int _average_players_count, int _total_time_played_sec, int _total_games_played)
 
void read (const QJsonObject &json)
 

Static Public Member Functions

static void write (QJsonObject &json)
 

Public Attributes

int average_duration_sec = 0
 
int average_players_count = 0
 
int total_time_played_sec = 0
 
int total_games_played = 0
 

Detailed Description

Definition at line 6 of file gamestatistics.h.

Constructor & Destructor Documentation

◆ GameStatistics()

GameStatistics::GameStatistics ( int  _average_duration_sec,
int  _average_players_count,
int  _total_time_played_sec,
int  _total_games_played 
)

Definition at line 5 of file gamestatistics.cpp.

Member Function Documentation

◆ read()

void GameStatistics::read ( const QJsonObject &  json)

Definition at line 15 of file gamestatistics.cpp.

◆ write()

void GameStatistics::write ( QJsonObject &  json)
static

Definition at line 34 of file gamestatistics.cpp.

Member Data Documentation

◆ average_duration_sec

int GameStatistics::average_duration_sec = 0

Definition at line 17 of file gamestatistics.h.

◆ average_players_count

int GameStatistics::average_players_count = 0

Definition at line 18 of file gamestatistics.h.

◆ total_games_played

int GameStatistics::total_games_played = 0

Definition at line 20 of file gamestatistics.h.

◆ total_time_played_sec

int GameStatistics::total_time_played_sec = 0

Definition at line 19 of file gamestatistics.h.


The documentation for this struct was generated from the following files: