|
|
@ -9,11 +9,11 @@ Ware::Ware(std::string name, bool hasCooling, double width, double height) { |
|
|
|
this->size = { width, height }; |
|
|
|
|
|
|
|
if(hasCooling) { |
|
|
|
this->type = CoolingWare; |
|
|
|
this->type = WareType::CoolingWare; |
|
|
|
} else if(isLargeWare(this->size)) { |
|
|
|
this->type = LargeWare; |
|
|
|
this->type = WareType::LargeWare; |
|
|
|
} else { |
|
|
|
this->type = DefaultWare; |
|
|
|
this->type = WareType::DefaultWare; |
|
|
|
} |
|
|
|
count++; |
|
|
|
this->id = this->generateId(); |
|
|
|