Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
src
common
network
requests
decide_trump_color_request.h
1
//
2
// Created by Manuel on 29.01.2021.
3
//
4
5
#ifndef WIZARD_DECIDE_TRUMP_COLOR_REQUEST_H
6
#define WIZARD_DECIDE_TRUMP_COLOR_REQUEST_H
7
8
#include <string>
9
#include "client_request.h"
10
#include "../../../../rapidjson/include/rapidjson/document.h"
11
12
class
decide_trump_color_request
:
public
client_request
{
13
14
private
:
15
int
_trump_color;
16
17
/*
18
* Private constructor for deserialization
19
*/
20
decide_trump_color_request
(
base_class_properties
,
int
val);
21
22
public
:
23
24
[[nodiscard]]
int
get_trump_color()
const
{
return
this->_trump_color; }
25
26
decide_trump_color_request
(std::string game_id, std::string player_id,
int
trump_color = 1);
// why default value of 1??
27
virtual
void
write_into_json(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator)
const override
;
28
static
decide_trump_color_request
* from_json(
const
rapidjson::Value& json);
29
};
30
31
32
#endif
//WIZARD_DECIDE_TRUMP_COLOR_REQUEST_H
client_request
Definition
client_request.h:30
decide_trump_color_request
Definition
decide_trump_color_request.h:12
client_request::base_class_properties
Definition
client_request.h:33
Generated by
1.12.0