Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
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
13
14private:
15 int _trump_color;
16
17 /*
18 * Private constructor for deserialization
19 */
21
22public:
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
Definition client_request.h:30
Definition decide_trump_color_request.h:12
Definition client_request.h:33