Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
src
common
network
responses
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
11
class
full_state_response
:
public
server_response
{
12
private
:
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
20
public
:
21
22
full_state_response
(std::string game_id,
const
game_state
& state);
23
~full_state_response
();
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
full_state_response
Definition
full_state_response.h:11
game_state
Definition
game_state.h:18
server_response
Definition
server_response.h:24
server_response::base_class_properties
Definition
server_response.h:36
Generated by
1.12.0