1#ifndef EILE_MIT_WEILE_JOIN_GAME_REQUEST_HPP
2#define EILE_MIT_WEILE_JOIN_GAME_REQUEST_HPP
7#include "server/PlayerManager.hpp"
9#include "rapidjson/document.h"
23 void WriteIntoJson(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator)
const override;
Base class for all requests that are being sent from the client to the server.
Definition ClientRequest.hpp:38
This class represents a join_game_request from the client.
Definition join_game_request.hpp:18
std::string _player_name
Definition join_game_request.hpp:27
join_game_request(std::string player_id, std::string name)
Definition join_game_request.cpp:6
static join_game_request * FromJson(const rapidjson::Value &json)
Definition join_game_request.cpp:22
std::string GetPlayerName() const
Definition join_game_request.cpp:11
static std::string undefined_game_id
Definition join_game_request.hpp:3
void WriteIntoJson(rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override
Definition join_game_request.cpp:15
Holds the properties that are common to all ClientRequest subclasses.
Definition ClientRequest.hpp:63