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

Public Member Functions

 Player (int _player_id, User _user)
 
void read (const QJsonObject &json)
 

Static Public Member Functions

static void write (QJsonObject &json)
 

Public Attributes

int player_id {}
 
User user
 

Detailed Description

Definition at line 7 of file player.h.

Constructor & Destructor Documentation

◆ Player()

Player::Player ( int  _player_id,
User  _user 
)

Definition at line 5 of file player.cpp.

Member Function Documentation

◆ read()

void Player::read ( const QJsonObject &  json)

Definition at line 9 of file player.cpp.

◆ write()

void Player::write ( QJsonObject &  json)
static

Definition at line 20 of file player.cpp.

Member Data Documentation

◆ player_id

int Player::player_id {}

Definition at line 15 of file player.h.

◆ user

User Player::user

Definition at line 16 of file player.h.


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