1#ifndef EILEMITWEILE_BENCHSPACE_HPP
2#define EILEMITWEILE_BENCHSPACE_HPP
20 [[nodiscard]]
bool IsBlocked()
const override;
27 void WriteIntoJson(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator)
const override;
31 BenchSpace(std::string
id,
unsigned space_idx, std::vector<Figure*> figures,
bool is_blocked);
Represents a bench space on the board.
Definition BenchSpace.hpp:15
bool IsBlocked() const override
Definition BenchSpace.cpp:35
static BenchSpace * FromJson(const rapidjson::Value &json)
Definition BenchSpace.cpp:44
BenchSpace(unsigned space_idx)
unsigned int AddFigure(Figure *figure) override
Definition BenchSpace.cpp:67
void WriteIntoJson(rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override
Definition BenchSpace.cpp:59
bool _is_blocked
Definition BenchSpace.hpp:30
void SetBlock()
Definition BenchSpace.cpp:15
unsigned GetTypeOfSpace() const override
Definition BenchSpace.cpp:40
Figure * RemoveFigure(Figure *figure) override
Definition BenchSpace.cpp:75
BenchSpace(std::string id, unsigned space_idx, std::vector< Figure * > figures, bool is_blocked)
void FreeBlock()
Definition BenchSpace.cpp:25
Abstract Base Class. Represents a space on the board.
Definition Space.hpp:28