1#ifndef EILEMITWEILE_LADDERSPACE_HPP
2#define EILEMITWEILE_LADDERSPACE_HPP
19 void WriteIntoJson(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator)
const override;
23 LadderSpace(std::string
id,
unsigned space_idx, std::vector<Figure*> figures,
int color);
Color
Enum for the colors of the players.
Definition Player.hpp:15
Represents a ladder space on the board.
Definition LadderSpace.hpp:13
unsigned GetTypeOfSpace() const override
Definition LadderSpace.cpp:17
Color _color
Definition LadderSpace.hpp:22
void WriteIntoJson(rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) const override
Definition LadderSpace.cpp:35
LadderSpace(std::string id, unsigned space_idx, std::vector< Figure * > figures, int color)
LadderSpace(unsigned space_idx, int color)
static LadderSpace * FromJson(const rapidjson::Value &json)
Definition LadderSpace.cpp:21
Color GetColor() const
Definition LadderSpace.cpp:13
Abstract Base Class. Represents a space on the board.
Definition Space.hpp:28