Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
full_state_response.h
1//
2// Created by Manuel on 15.02.2021.
3//
4
5#ifndef WIZARD_FULL_STATE_RESPONSE_H
6#define WIZARD_FULL_STATE_RESPONSE_H
7
8#include "server_response.h"
9#include "../../game_state/game_state.h"
10
12private:
13 rapidjson::Value* _state_json;
14
15 /*
16 * Private constructor for deserialization
17 */
18 full_state_response(base_class_properties props, rapidjson::Value* state_json);
19
20public:
21
22 full_state_response(std::string game_id, const game_state& state);
24
25 rapidjson::Value* get_state_json() const;
26
27 virtual void write_into_json(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator) const override;
28 static full_state_response* from_json(const rapidjson::Value& json);
29
30#ifdef WIZARD_CLIENT
31 virtual void Process() const override;
32#endif
33};
34
35
36#endif //WIZARD_FULL_STATE_RESPONSE_H
Definition full_state_response.h:11
Definition game_state.h:18
Definition server_response.h:24
Definition server_response.h:36