Skip to content

Instantly share code, notes, and snippets.

#include "BedroomPlanner.h"
BedroomPlanner::BedroomPlanner(double scale, double widthM, double heightM) {
this->bedroom = gcnew Room(scale, widthM, heightM);
}
void BedroomPlanner::AddItem(FurnitureType type, int x, int y, int w, int h, bool flipped) {
FurnitureItem^ newItem = gcnew FurnitureItem(type, System::Drawing::Point(x, y), System::Drawing::Size(w, h), flipped);
this->bedroom->AddItem(newItem);
}