Eile Mit Weile
Loading...
Searching...
No Matches
NormalSpace.hpp
1#ifndef EILEMITWEILE_NORMALSPACE_HPP
2#define EILEMITWEILE_NORMALSPACE_HPP
3#include "Space.hpp"
4
12class NormalSpace: public Space {
13public:
14 explicit NormalSpace(unsigned space_idx);
15 [[nodiscard]] unsigned GetTypeOfSpace() const override;
17 static NormalSpace* FromJson(const rapidjson::Value& json);
18 void WriteIntoJson(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator) const override;
20private:
21 NormalSpace(std::string id, unsigned space_idx, std::vector<Figure*> figures);
22};
23
24
25#endif //EILEMITWEILE_NORMALSPACE_HPP
Represents a normal space on the board.
Definition NormalSpace.hpp:12
NormalSpace(std::string id, unsigned space_idx, std::vector< Figure * > figures)
static NormalSpace * FromJson(const rapidjson::Value &json)
Definition NormalSpace.cpp:18
void WriteIntoJson(rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override
Definition NormalSpace.cpp:32
NormalSpace(unsigned space_idx)
unsigned GetTypeOfSpace() const override
Definition NormalSpace.cpp:14
Abstract Base Class. Represents a space on the board.
Definition Space.hpp:28