| 11 | |
| 12 | Field::Field() = default; |
| 13 | Field::Field(const Cells& cells, const std::string& id_p) : id_(id_p) { |
| 14 | if (!cells.isEmpty()) { |
| 15 | this->ref_point_ = cells.getCellBorder(0).startPoint(); |
| 16 | } |
| 17 | this->field_ = cells - this->ref_point_; |
| 18 | } |
| 19 | |
| 20 | Field::~Field() = default; |
| 21 | Field::Field(const Field&) = default; |